-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](trash core) fix get trash directory size core (#25428) #25829
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](trash core) fix get trash directory size core (#25428) #25829
Conversation
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
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. |
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
deardeng
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
Proposed changes
pick: #25428
When multithreads access one directory, one thread create or delete a subdirectory, the other thread use directory_iterator may raise bad file discriptor error. See example. But I can not reproduce this.
The sweep thread use directory_iterator to calculate the trash directory size. While the gc thread will move new trash tablet into this trash directory. Sometimes stopping be will raise bad file discriptor when calcuating the trash directory size. We take a lot effect to find out the reason, but still unknown. So we make a code defence and ignore the get trash directory size filesystem error.
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...