LuciferYang commented on code in PR #36200:
URL: https://github.com/apache/spark/pull/36200#discussion_r936287371
##########
resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnShuffleIntegrationSuite.scala:
##########
@@ -138,7 +138,9 @@ private object YarnExternalShuffleDriver extends Logging
with Matchers {
logInfo("shuffle service executor file = " + registeredExecFile)
var result = "failure"
val execStateCopy = Option(registeredExecFile).map { file =>
- new File(file.getAbsolutePath + "_dup")
+ val path = file.getAbsolutePath
+ val idx = path.lastIndexOf(".")
+ new File(s"${path.slice(0, idx)}_dup${path.slice(idx, path.length)}")
Review Comment:
Let the suffix of dup file be `.ldb`
--
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]