Skip to content

Conversation

@jiangxb1987
Copy link
Contributor

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.

}

private def updateAccessTime(appId: String, attemptId: Option[String]): Unit = {
private def updateApplicationStoreInfo(
Copy link
Contributor Author

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.

@SparkQA
Copy link

SparkQA commented May 19, 2020

Test build #122840 has finished for PR 28579 at commit f212f33.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@jiangxb1987
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented May 19, 2020

Test build #122853 has finished for PR 28579 at commit f212f33.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@Ngone51 Ngone51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jiangxb1987
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented May 22, 2020

Test build #122951 has finished for PR 28579 at commit f212f33.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@jiangxb1987
Copy link
Contributor Author

Thanks, merged to master!

HeartSaVioR pushed a commit to HeartSaVioR/spark that referenced this pull request Jul 8, 2020
### 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants