Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[CELEBORN-764] Fix celeborn on HDFS might clean using app directories. #1678
[CELEBORN-764] Fix celeborn on HDFS might clean using app directories. #1678
Changes from 4 commits
c6b50e3
c407201
d4e3595
113f7df
cd37620
b21b056
344787e
dd6f55d
84ceda8
acbcdc8
59b99c3
393bb53
fc2d0d7
f23aca4
ad21966
760b924
8df0d4b
af59f07
22b6989
9e47b1a
ff715b8
59d0869
2999a49
1d793b7
d18430d
2fbcc57
9499121
1643cb6
93689d9
063bc9c
e6ff705
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Better to use appHeartbeatTime map to get active appIds. Master may encounter corner case.
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.
IMO, We can directly use appHeartbeatTime keySet.
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.
+1, one application may have many shuffleKeys
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 may cost lot as applications may lost frequently in a big cluster, we would better not clean expired app dirs in handleApplicationLost, instead we need do this in timeoutDeadApplications after we handleApplicationLost. And if this cost lot, I suggest we can cache this list and refresh every x(3) min turn?
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.
Sounds reasonable. I'll move the clean logic to
timeoutDeadApplications
. I think listing directories won't cost a lot.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.
I also think it's not a good idea to call
cleanExpiredAppDirsOnHDFS
when app lost. IMO we can just useforwardMessageThread.scheduleAtFixedRate
to check likecheckForWorkerTimeOutTask
andcheckForApplicationTimeOutTask
. Also we need to changeforwardMessageThread
from single thread to multiple threads.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.
Also, we need to ensure that the leader has replayed all raft logs before cleanup.