viirya commented on code in PR #43743:
URL: https://github.com/apache/spark/pull/43743#discussion_r1388794250
##########
core/src/main/scala/org/apache/spark/deploy/master/Master.scala:
##########
@@ -1041,7 +1042,11 @@ private[deploy] class Master(
ApplicationInfo = {
val now = System.currentTimeMillis()
val date = new Date(now)
- val appId = newApplicationId(date)
+ val appId = if (useAppNameAsAppId) {
+ desc.name.toLowerCase().replaceAll("\\s+", "")
+ } else {
+ newApplicationId(date)
+ }
Review Comment:
Hmm, how Spark responses to duplicate appId? If two submitted applications
have same app names.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]