-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[fix](backup) Support backup meta/job info exceeds 2GB #55608
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](backup) Support backup meta/job info exceeds 2GB #55608
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
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. |
cea66f3 to
f392160
Compare
f392160 to
d2e9cc9
Compare
|
run buildall |
| long snapshotSize = snapshot.getMetaSize() + snapshot.getJobInfoSize(); | ||
| if (metaSize + jobInfoSize >= Integer.MAX_VALUE) { | ||
| String msg = String.format( | ||
| "Snapshot %s is too large (%d bytes > 2GB). Please enable compression to continue.", |
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.
Please give specific howtos about enable compression.
FE UT Coverage ReportIncrement line coverage |
TPC-H: Total hot run time: 34324 ms |
TPC-DS: Total hot run time: 187207 ms |
ClickBench: Total hot run time: 32.36 s |
FE Regression Coverage ReportIncrement line coverage |
|
run buildall |
TPC-H: Total hot run time: 33996 ms |
TPC-DS: Total hot run time: 187081 ms |
ClickBench: Total hot run time: 33.02 s |
FE Regression Coverage ReportIncrement line coverage |
1 similar comment
FE Regression Coverage ReportIncrement line coverage |
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. |
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
The original implementation does not support deserializing the backupMeta and backupJobInfo because the size exceeds 2GB, since Java byte[] max length is Integer.MAX_VALUE.
This PR compresses the bytes before loading them into the heap.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)