-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](compaction) fix the longest continuous rowsets cannot be selected when missing rowsets #38728
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
Conversation
…ed when missing rowsets
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| #include "olap/cumulative_compaction.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: 'olap/cumulative_compaction.h' file not found [clang-diagnostic-error]
#include "olap/cumulative_compaction.h"
^| return rowset; | ||
| } | ||
|
|
||
| TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'TEST_F' exceeds recommended size/complexity thresholds [readability-function-size]
TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) {
^Additional context
be/test/olap/cumulative_compaction_test.cpp:66: 142 lines including whitespace and comments (threshold 80)
TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) {
^
dataroaring
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 41477 ms |
TPC-DS: Total hot run time: 169981 ms |
ClickBench: Total hot run time: 29.99 s |
|
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
| return rowset; | ||
| } | ||
|
|
||
| TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'TEST_F' exceeds recommended size/complexity thresholds [readability-function-size]
TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) {
^Additional context
be/test/olap/cumulative_compaction_test.cpp:66: 197 lines including whitespace and comments (threshold 80)
TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) {
^
TPC-H: Total hot run time: 41558 ms |
TPC-DS: Total hot run time: 169386 ms |
ClickBench: Total hot run time: 30.07 s |
dataroaring
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
…ed when missing rowsets (#38728) ### problem When version is missing, the code for selecting the longest continuous version has a bug. Only the version before the missing version will be selected. For example: the current version is version [1-1], version [2-2], version [4-4], version [5-5], version [6-6], version [7-7], and version [3-3] is missing. The current result is to return version [1-1], version [2-2] instead of version [4-4], version [5-5], version [6-6], version [7-7]
…ed when missing rowsets (apache#38728) When version is missing, the code for selecting the longest continuous version has a bug. Only the version before the missing version will be selected. For example: the current version is version [1-1], version [2-2], version [4-4], version [5-5], version [6-6], version [7-7], and version [3-3] is missing. The current result is to return version [1-1], version [2-2] instead of version [4-4], version [5-5], version [6-6], version [7-7]
…ed when missing rowsets (#38728) ### problem When version is missing, the code for selecting the longest continuous version has a bug. Only the version before the missing version will be selected. For example: the current version is version [1-1], version [2-2], version [4-4], version [5-5], version [6-6], version [7-7], and version [3-3] is missing. The current result is to return version [1-1], version [2-2] instead of version [4-4], version [5-5], version [6-6], version [7-7]
…e selected when missing rowsets (apache#38728) (apache#39262)" This reverts commit c9949f2. This pr may increase the probability of full clone failure, so revert it first.
problem
When version is missing, the code for selecting the longest continuous version has a bug. Only the version before the missing version will be selected.
For example: the current version is version [1-1], version [2-2], version [4-4], version [5-5], version [6-6], version [7-7], and version [3-3] is missing.
The current result is to return version [1-1], version [2-2] instead of version [4-4], version [5-5], version [6-6], version [7-7]