Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-586

Snapshots are not interruptable with the Postgres connector

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 0.7.3
    • None
    • postgresql-connector
    • None

      When stopping the PG connector while it's doing a snapshot, the producer thread will not be stopped or interrupted, but keeps going.

      It will eventually stop if all the records it emits fit into the internal queue. Should it emit more records than the queue can take (the usual case for a non-tiny database), the producer thread will wait indefinitely at the call to BlockingQueue#put() in PostgresConnectorTask#enqueueRecord().

      Note that this also keeps the table locks acquired at the beginning of the snapshotting phase (which protect against schema changes, not data changes) until KC is shut down.

              gunnar.morling Gunnar Morling
              gunnar.morling Gunnar Morling
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: