yiheng commented on a change in pull request #230: [WIP][LIVY-664][Server] 
Spark application still running when Livy session creating was rejected
URL: https://github.com/apache/incubator-livy/pull/230#discussion_r325514352
 
 

 ##########
 File path: server/src/main/scala/org/apache/livy/server/SessionServlet.scala
 ##########
 @@ -131,6 +131,11 @@ abstract class SessionServlet[S <: Session, R <: 
RecoveryMetadata](
       if (tooManySessions) {
         BadRequest(ResponseMessage("Rejected, too many sessions are being 
created!"))
       } else {
+        // LIVY-664: Check if name is duplicated before create a session
+        val newSessionName = sessionName(request)
 
 Review comment:
   I'm not sure about this. Not sure if the `register` method will be used in 
other places

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to