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

[fix](move-memtable) check segment num when closing each tablet (#36753) #37536

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

kaijchen
Copy link
Contributor

@kaijchen kaijchen commented Jul 9, 2024

cherry-pick #36753 and #37660

@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.

@kaijchen
Copy link
Contributor Author

kaijchen commented Jul 9, 2024

run buildall

Copy link
Contributor

github-actions bot commented Jul 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

…he#36753)

Previously, there is chance that sender failed to send some data while
the receiver being unaware of.
This will cause lost data if some segments are skipped.

This PR fixes the problem by including checks in both sender and
receiver.
When sender failed to send rpc, LoadStreamStub will mark the involved
tablets failed.
Each sender will send segment num for each tablet in CLOSE_LOAD,
and receivers (LoadStream) will sum up and check total segment nums.
@kaijchen
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 11, 2024
Copy link
Contributor

PR approved by at least one committer and no changes requested.

Copy link
Contributor

PR approved by anyone and no changes requested.

@kaijchen
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.36% (9162/25199)
Line Coverage: 27.90% (74867/268357)
Region Coverage: 26.80% (38638/144158)
Branch Coverage: 23.49% (19577/83350)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c748b2e3b1b6969c2b1874e32bf70ce542c9471d_c748b2e3b1b6969c2b1874e32bf70ce542c9471d/report/index.html

@liaoxin01
Copy link
Contributor

run p0

@liaoxin01 liaoxin01 merged commit fed632b into apache:branch-2.1 Jul 11, 2024
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. meta-change reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants