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

[BugFix] Add more check and info when compaction find row size inconsistency (backport #33972) #34051

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 31, 2023

This is an automatic backport of pull request #33972 done by Mergify.
Cherry-pick of 5322894 has failed:

On branch mergify/bp/branch-2.5/pr-33972
Your branch is up to date with 'origin/branch-2.5'.

You are currently cherry-picking commit 5322894e53.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   be/src/storage/tablet_updates.h
	modified:   be/src/util/pretty_printer.h

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   be/src/storage/tablet_updates.cpp

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

@mergify mergify bot added the conflicts label Oct 31, 2023
@wanpengfei-git wanpengfei-git enabled auto-merge (rebase) October 31, 2023 09:37
@mergify mergify bot closed this Oct 31, 2023
auto-merge was automatically disabled October 31, 2023 09:38

Pull request was closed

@mergify
Copy link
Contributor Author

mergify bot commented Oct 31, 2023

@mergify[bot]: Backport conflict, please reslove the conflict and resubmit the pr

@mergify mergify bot deleted the mergify/bp/branch-2.5/pr-33972 branch October 31, 2023 09:38
@decster decster restored the mergify/bp/branch-2.5/pr-33972 branch October 31, 2023 09:40
@decster decster reopened this Oct 31, 2023
@wanpengfei-git wanpengfei-git enabled auto-merge (rebase) October 31, 2023 09:41
…istency (#33972)

Add more debug&verify log to address #33971

Signed-off-by: Binglin Chang <[email protected]>
(cherry picked from commit 5322894)
@decster decster force-pushed the mergify/bp/branch-2.5/pr-33972 branch 5 times, most recently from a0390ac to b519868 Compare November 1, 2023 06:55
Fixes #25337

Recently, we encountered some data corruption bugs after
compaction/schema-change, especially for the sort key enabled table. It's
better to add a function to check compaction/schema-change correctness, so
as to notice bugs earlier.

This PR adds a function to check rowset correctness(currently checks each
segment file's key/order key is ordered, and unique if it's pk table and
data is ordered by pk). There are 2 ways to invoke/enable rowset verify

1. BE config `enable_rowset_verify`, if enabled, compaction and
schema_change creating a new rowset will do a verification after rowset is
generated.
2. bind `Tablet::verify` method to script engine, so user can verify
each tablet manually, or verify all the tablets of a table in a loop
using script.

(cherry picked from commit dba492c)
Signed-off-by: Binglin Chang <[email protected]>
@decster decster force-pushed the mergify/bp/branch-2.5/pr-33972 branch from b519868 to 908cfc3 Compare November 1, 2023 07:36
Copy link

github-actions bot commented Nov 1, 2023

[FE Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

github-actions bot commented Nov 1, 2023

[BE Incremental Coverage Report]

pass : 124 / 149 (83.22%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 src/storage/vertical_compaction_task.cpp 0 2 00.00% [98, 100]
🔵 src/storage/tablet.cpp 0 11 00.00% [1298, 1300, 1301, 1302, 1304, 1306, 1309, 1312, 1313, 1314, 1315]
🔵 src/storage/rowset/rowset.h 0 1 00.00% [318]
🔵 src/storage/horizontal_compaction_task.cpp 1 2 50.00% [101]
🔵 src/storage/rowset/rowset.cpp 66 74 89.19% [495, 496, 498, 533, 544, 596, 597, 608]
🔵 src/storage/tablet_updates.cpp 53 55 96.36% [1442, 1781]
🔵 src/util/pretty_printer.h 4 4 100.00% []

@wanpengfei-git wanpengfei-git merged commit 3ca2cb1 into branch-2.5 Nov 1, 2023
14 checks passed
@wanpengfei-git wanpengfei-git deleted the mergify/bp/branch-2.5/pr-33972 branch November 1, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants