-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Check running job before create backup #5013
Check running job before create backup #5013
Conversation
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 PR is to prevent BR running when there are other jobs, which is definitely a must. But in the issue, it is the other way around: stop the Balance job running when there are backup jobs. Will it be solved somewhere else?
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.
Good job.
I have a question.
In the second step of CreateBackupProcessor::process
, if a blocking_
lock is added to the part of the storage engine, writing is not allowed, but it will not block the execution of the job? Such as compact 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.
Good enhancement!
No, since BR use hard link instead of copy data, it will be very fast. But indeed, we could use the global lock to handle the corner case. |
Ineed, then we should:
For the 1, we already check. The latter is the same problem raised by wenhao. We may could use an lock on space. |
Codecov ReportBase: 77.34% // Head: 77.96% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #5013 +/- ##
==========================================
+ Coverage 77.34% 77.96% +0.61%
==========================================
Files 1105 1108 +3
Lines 82146 82642 +496
==========================================
+ Hits 63539 64430 +891
+ Misses 18607 18212 -395
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
6c2eb5d
to
9b6304c
Compare
43f5c9d
to
ba4d08e
Compare
change back to snapshot lock and acquire lock when add job
de5138a
474262c
to
de5138a
Compare
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
#5012
#4975
Description:
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: