Skip to content

fix: fix dest_keys chunks bug in TombstoneManager #6432

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

Merged
merged 3 commits into from
Jul 1, 2025

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented Jul 1, 2025

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

This PR fixes a critical bug(introduced by #3727) in the TombstoneManager::move_values() method where the destination keys chunking was incorrectly using source keys instead of destination keys.

PR Checklist

Please convert it to a draft if some of the following conditions are not met.

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR requires documentation updates.
  • API changes are backward compatible.
  • Schema or data changes are backward compatible.

@WenyXu WenyXu requested a review from MichaelScofield as a code owner July 1, 2025 08:00
@WenyXu WenyXu requested a review from fengjiachun July 1, 2025 08:01
@github-actions github-actions bot added size/S docs-not-required This change does not impact docs. labels Jul 1, 2025
Signed-off-by: WenyXu <wenymedia@gmail.com>
Signed-off-by: WenyXu <wenymedia@gmail.com>
@WenyXu WenyXu requested review from zhongzc and waynexia as code owners July 1, 2025 08:13
Signed-off-by: WenyXu <wenymedia@gmail.com>
@WenyXu WenyXu enabled auto-merge July 1, 2025 08:41
@WenyXu WenyXu added this pull request to the merge queue Jul 1, 2025
Merged via the queue into GreptimeTeam:main with commit e0382ee Jul 1, 2025
76 of 77 checks passed
@WenyXu WenyXu deleted the fix/tombstone branch July 1, 2025 09:46
@evenyag evenyag added the backport This patch is to be backported to current release branch label Jul 2, 2025
WenyXu added a commit that referenced this pull request Jul 2, 2025
* fix(meta): fix dest_keys_chunks bug in TombstoneManager

Signed-off-by: WenyXu <wenymedia@gmail.com>

* chore: fix typo

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix: fix sqlness tests

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
@evenyag evenyag mentioned this pull request Jul 2, 2025
18 tasks
evenyag pushed a commit to evenyag/greptimedb that referenced this pull request Jul 2, 2025
* fix(meta): fix dest_keys_chunks bug in TombstoneManager

Signed-off-by: WenyXu <wenymedia@gmail.com>

* chore: fix typo

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix: fix sqlness tests

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
Signed-off-by: evenyag <realevenyag@gmail.com>
evenyag pushed a commit that referenced this pull request Jul 3, 2025
* fix(meta): fix dest_keys_chunks bug in TombstoneManager

Signed-off-by: WenyXu <wenymedia@gmail.com>

* chore: fix typo

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix: fix sqlness tests

Signed-off-by: WenyXu <wenymedia@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
Signed-off-by: evenyag <realevenyag@gmail.com>
shuiyisong added a commit that referenced this pull request Jul 3, 2025
* fix(meta): fix dest_keys_chunks bug in TombstoneManager



* chore: fix typo



* fix: fix sqlness tests



---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
Co-authored-by: Weny Xu <wenymedia@gmail.com>
@evenyag evenyag removed the backport This patch is to be backported to current release branch label Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants