-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31757][CORE] Improve HistoryServerDiskManager.updateAccessTime() #28579
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
| } | ||
|
|
||
| private def updateAccessTime(appId: String, attemptId: Option[String]): Unit = { | ||
| private def updateApplicationStoreInfo( |
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 updates both the lastAccess time and the size, so it would be better to rename to updateApplicationStoreInfo.
|
Test build #122840 has finished for PR 28579 at commit
|
|
retest this please |
|
Test build #122853 has finished for PR 28579 at commit
|
Ngone51
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
|
retest this please |
|
Test build #122951 has finished for PR 28579 at commit
|
|
Thanks, merged to master! |
### What changes were proposed in this pull request? The function `HistoryServerDiskManager`.`updateAccessTime()` would recompute the application store directory size every time it's triggered, this effort could be avoided because we already computed the new size outside the function call. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing test cases. Closes apache#28579 from jiangxb1987/updateInfo. Authored-by: Xingbo Jiang <[email protected]> Signed-off-by: Xingbo Jiang <[email protected]>
What changes were proposed in this pull request?
The function
HistoryServerDiskManager.updateAccessTime()would recompute the application store directory size every time it's triggered, this effort could be avoided because we already computed the new size outside the function call.Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing test cases.