debezium / debezium/dbz

Debezium does not fail connector task when there is no load [DBZ-6467]

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

Nobody has claimed this yet.

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

Description

Migrated from DBZ-6467

I noticed that if database has no traffic, it will not throw any enqueued errors: [https://github.com/debezium/debezium/blob/bd0c760d9f3cd3f8889283889272f10d91d1bce2/debezium-core/src/main/java/io/debezium/connector/base/ChangeEventQueue.java#LL256C24-L256C36]

This means that the task will keep running even though it should throw an error when there is no traffic

In my case, the fact that the connector task didn't fail caused my connector task to stop running.

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 at debezium-core/src/main/java/io/debezium/connector/base/ChangeEventQueue.java around line 256 and trace how enqueued errors are handled when the database has no traffic. Confirm the connector task's behavior in that no-load case; done means the task fails instead of continuing to run while an error remains unreported.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.