Skip to content
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

[SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature #35567

Closed
wants to merge 3 commits into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Feb 18, 2022

What changes were proposed in this pull request?

This pr is a followup of SPARK-38175 to remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature

Why are the changes needed?

Cleanup unused symbol.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GA

@LuciferYang LuciferYang changed the title [SPARK-38175][CORE][FOLLOWUP] Clean up unused parameters in private methods signature [WIP][SPARK-38175][CORE][FOLLOWUP] Clean up unused parameters in private methods signature Feb 18, 2022
@github-actions github-actions bot added the CORE label Feb 18, 2022
@LuciferYang LuciferYang marked this pull request as draft February 18, 2022 05:36
case None => execSummary
}
}

private def replaceLogUrls(exec: v1.ExecutorSummary, urlPattern: String): v1.ExecutorSummary = {
Copy link
Contributor Author

@LuciferYang LuciferYang Feb 18, 2022

Choose a reason for hiding this comment

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

SPARK-26311 defines this method with urlPattern and SPARK-26792 change to use logUrlPattern held by ExecutorLogUrlHandler

@LuciferYang LuciferYang changed the title [WIP][SPARK-38175][CORE][FOLLOWUP] Clean up unused parameters in private methods signature [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls methods signature Feb 18, 2022
@LuciferYang LuciferYang changed the title [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls methods signature [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature Feb 18, 2022
@LuciferYang LuciferYang changed the title [WIP][SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature [SPARK-38175][CORE][FOLLOWUP] Remove urlPattern from HistoryAppStatusStore#replaceLogUrls method signature Feb 18, 2022
@LuciferYang LuciferYang marked this pull request as ready for review February 18, 2022 09:41
case None => execList
}
}

override def executorSummary(executorId: String): v1.ExecutorSummary = {
val execSummary = super.executorSummary(executorId)
logUrlPattern match {
case Some(pattern) => replaceLogUrls(execSummary, pattern)
case Some(_) => replaceLogUrls(execSummary)
Copy link
Member

Choose a reason for hiding this comment

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

This is fine though could simplify to a condition on logUrlPattern.nonEmpty or something

Copy link
Contributor Author

Choose a reason for hiding this comment

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

like 6be9cbf?

@@ -45,20 +45,21 @@ private[spark] class HistoryAppStatusStore(
override def executorList(activeOnly: Boolean): Seq[v1.ExecutorSummary] = {
val execList = super.executorList(activeOnly)
logUrlPattern match {
case Some(pattern) => execList.map(replaceLogUrls(_, pattern))
case Some(_) => execList.map(replaceLogUrls)
Copy link
Member

Choose a reason for hiding this comment

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

Here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, let me fix this too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@srowen srowen closed this in 06f4ce4 Feb 19, 2022
@srowen
Copy link
Member

srowen commented Feb 19, 2022

Merged to master

@LuciferYang
Copy link
Contributor Author

thanks @srowen

@LuciferYang LuciferYang deleted the SPARK-38175-FOLLOWUP branch October 22, 2023 07:44
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.

2 participants