yaooqinn commented on a change in pull request #1391:
URL: https://github.com/apache/incubator-kyuubi/pull/1391#discussion_r750033937



##########
File path: 
kyuubi-server/src/main/scala/org/apache/kyuubi/engine/ProcBuilder.scala
##########
@@ -83,11 +83,12 @@ trait ProcBuilder {
     val processLogPath = workingDir
     val totalExistsFile = processLogPath.toFile.listFiles { (_, name) => 
name.startsWith(module) }
     val sorted = totalExistsFile.sortBy(_.getName.split("\\.").last.toInt)
-    val nextIndex = if (sorted.isEmpty) {
-      0
-    } else {
-      sorted.last.getName.split("\\.").last.toInt + 1
-    }
+    val nextIndex =
+      if (sorted.isEmpty) {

Review comment:
       ditto




-- 
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]


Reply via email to