Skip to content

Conversation

@luwei16
Copy link
Contributor

@luwei16 luwei16 commented Aug 13, 2024

pick master #38728

…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]
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

Copy link
Contributor

@github-actions github-actions bot left a 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"
Copy link
Contributor

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) {
Copy link
Contributor

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) {
^

@luwei16
Copy link
Contributor Author

luwei16 commented Aug 13, 2024

run buildall

Copy link
Contributor

@github-actions github-actions bot left a 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) {
Copy link
Contributor

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:65: 197 lines including whitespace and comments (threshold 80)

TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) {
^

@luwei16
Copy link
Contributor Author

luwei16 commented Aug 13, 2024

run buildall

Copy link
Contributor

@github-actions github-actions bot left a 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) {
Copy link
Contributor

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:65: 206 lines including whitespace and comments (threshold 80)

TEST_F(CumulativeCompactionTest, TestConsecutiveVersion) {
^

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.53% (9319/25513)
Line Coverage: 28.02% (76359/272500)
Region Coverage: 26.83% (39218/146191)
Branch Coverage: 23.56% (19911/84526)
Coverage Report: http://coverage.selectdb-in.cc/coverage/456d89e7dbbe69d0189e1abab636028232699194_456d89e7dbbe69d0189e1abab636028232699194/report/index.html

@yiguolei yiguolei merged commit c9949f2 into apache:branch-2.1 Aug 13, 2024
luwei16 added a commit to luwei16/Doris that referenced this pull request Sep 4, 2024
…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.
yiguolei pushed a commit that referenced this pull request Sep 4, 2024
…e selected when missing rowsets (#38728) (#39262)" (#40375)

This reverts commit c9949f2.

This pr may increase the probability of full clone failure, so revert it
first.
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants