Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. BUFFER_MODE - consumes WAL records from the CdcBufferQueue, that is filled directly from the WAL manager.
  2. ARCHIVE_MODE - consumes WAL records from archived WAL segments.
    1. Note, that the CdcBufferQueue is being filled in background in this mode.

Initialization:

  1. CdcWorker initialized with CdcConsumerState#loadWalState.
  2. Initial mode is ARCHIVE_MODE. It switches to the CdcBufferQueue after:
    1. The loaded pointer is not reached in the archive.
    2. OR the head of the buffer queue is less than the loaded pointer. 

...