Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CDCSDK] Restarting connector task can lose track of tablet list in cases of tablet split #15603

Closed
adithya-kb opened this issue Jan 9, 2023 · 0 comments
Assignees
Labels
area/cdcsdk CDC SDK kind/bug This issue is a bug priority/high High Priority

Comments

@adithya-kb
Copy link

adithya-kb commented Jan 9, 2023

Connector model today is to divide the list of tablets to tasks and then let the tasks do processing. However, the list which is received by these tasks is immutable, so let’s say we have a task restart, it will again try to read the same list.

Task 0: A, B, C
Task 1: D, E

Consider the following example:

  1. Task 0 receives the tablet list as A, B, C
  2. Tablet A splits down the line into A_1, A_2
  3. Task 0 is restarted
  4. Upon restart, it will read the original immutable list again (A, B, C) which is the stale list now
  5. At this point, there will be an error since the connector doesn’t know that it needs to find the children (or possibly grandchildren) tablets

Jira Link: DB-4992

@adithya-kb adithya-kb added the area/cdcsdk CDC SDK label Jan 9, 2023
@yugabyte-ci yugabyte-ci added kind/bug This issue is a bug priority/medium Medium priority issue labels Jan 9, 2023
@adithya-kb adithya-kb added priority/high High Priority and removed kind/bug This issue is a bug priority/medium Medium priority issue labels Jan 9, 2023
@yugabyte-ci yugabyte-ci added the kind/bug This issue is a bug label Jan 9, 2023
@yugabyte-ci yugabyte-ci changed the title [CDCSDK] Restarting connector task can loose track of tablet list in cases of tablet split [CDCSDK] Restarting connector task can lose track of tablet list in cases of tablet split Apr 20, 2023
vaibhav-yb added a commit to yugabyte/debezium-connector-yugabytedb that referenced this issue Dec 5, 2023
siddharth2411 added a commit to siddharth2411/debezium-connector-yugabytedb that referenced this issue Dec 7, 2023
siddharth2411 added a commit to siddharth2411/debezium-connector-yugabytedb that referenced this issue Dec 7, 2023
siddharth2411 added a commit to siddharth2411/debezium-connector-yugabytedb that referenced this issue Dec 7, 2023
siddharth2411 added a commit to siddharth2411/debezium-connector-yugabytedb that referenced this issue Dec 8, 2023
@github-project-automation github-project-automation bot moved this to Done in CDC Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cdcsdk CDC SDK kind/bug This issue is a bug priority/high High Priority
Projects
Status: Done
Development

No branches or pull requests

4 participants