debezium / debezium/dbz

Postgres configuration slot.drop.on.stop doesn't work during Snapshot [DBZ-3524]

Open
#460 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component/postgresql-connector migrated-from-jira type/bug
Dominant language
HTML
Stars
6
Forks
9
Avg merge
2d 19h
Merged PRs (30d)
1

Description

Migrated from [DBZ-3524](https://issues.redhat.com/browse/DBZ-3524)

We have observed that the Postgres configuration [{{slot.drop.on.stop}}|https://debezium.io/documentation/reference/connectors/postgresql.html#postgresql-property-slot-drop-on-stop] doesn't actually drop the slot if you delete the connector during the snapshot phase. It is only if the connector gets to the streaming phase will it drop the slot when you delete the connector.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PostgreSQL connector documentation for `slot.drop.on.stop` linked in the issue, then trace how connector deletion handles cleanup during the snapshot phase. Done means deleting the connector during a snapshot drops the slot, as it does after streaming begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.