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

[yugabyte/yugabyte-db#20243] Fix regression in streaming colocated tables #305

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

vaibhav-yb
Copy link
Collaborator

@vaibhav-yb vaibhav-yb commented Dec 10, 2023

Problem

After the connector changes for tablet split in this commit, the connector tests on colocated tables have started failing. The test failures can be seen in YugabyteDBColocatedTablesTest and YugabyteDBSnapshotTest classes. This was identified as a regression for colocated tables.

Solution

We were relying on the TabletLocationsPB object to give us the table ID, however, in case of colocated tables, we only get the colocated parent id which is same for all the colocated tables and is not useful to us. This PR solves the problem by leveraging the table ID from the YBTable object and using the same to create the HashPartition

This closes yugabyte/yugabyte-db#20243

@vaibhav-yb vaibhav-yb added the bug Something isn't working label Dec 10, 2023
@vaibhav-yb vaibhav-yb self-assigned this Dec 10, 2023
Copy link
Collaborator

@suranjan suranjan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets run all the tests before merging to master

@vaibhav-yb vaibhav-yb merged commit f439a4f into yugabyte:main Dec 13, 2023
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CDCSDK] DBZ: Connector tests for colocated tables fail on the main branch after tablet split changes
2 participants