-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](fe) Add check editlog size mechanism for backupJob #35653
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
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
1f95585 to
7a66e22
Compare
|
run buildall |
| } | ||
|
|
||
| @Override | ||
| public boolean exceedMaxJournalSize(short op, Writable writable) throws IOException { |
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.
Is param op mandatory for this check?
| return ""; | ||
| } | ||
|
|
||
| public boolean exceedMaxJournalSize(BackupJob job) { |
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.
It seems that we can change it to the following form
| public boolean exceedMaxJournalSize(BackupJob job) { | |
| public boolean exceedMaxJournalSize(Writable w) { |
| return true; | ||
| } | ||
|
|
||
| private boolean exceedMaxJournalSize(short op, Writable writable) throws IOException { |
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.
This function is redundant if we do not care about op
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.
This function is redundant if we do not care about
op
opCode is important, we will print opCode
|
please add a regression test in p2. |
TPC-H: Total hot run time: 41182 ms |
TPC-DS: Total hot run time: 168366 ms |
ClickBench: Total hot run time: 30.3 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. |
|
PR approved by anyone and no changes requested. |
|
run buildall |
1 similar comment
|
run buildall |
TPC-H: Total hot run time: 40871 ms |
TPC-DS: Total hot run time: 170773 ms |
ClickBench: Total hot run time: 30.32 s |
* When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow
|
run buildall |
TPC-H: Total hot run time: 41136 ms |
TPC-DS: Total hot run time: 169986 ms |
ClickBench: Total hot run time: 30.92 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
* When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow
* When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow
* When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow
…7466) * When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
* When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow
…7628) * When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
… (apache#37628) * When creating a backupJob with huge of tables in a database, it can cause backupJob editlog size over 2GB and bdbje will throw exception because of ByteBuffer overflow ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
Proposed changes
Issue Number: close #xxx