You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kyuubi.apache.org by GitBox <gi...@apache.org> on 2021/08/19 08:32:26 UTC

[GitHub] [incubator-kyuubi] iodone opened a new issue #961: Call closeOperation function in AbstractSession may cause inconsistencies in the operations held by Session and OpeartionManager

iodone opened a new issue #961:
URL: https://github.com/apache/incubator-kyuubi/issues/961


   ### 1. Describe the bug
   
   **Bug Analysis**
   https://github.com/apache/incubator-kyuubi/blob/4aa93d3cbdb71ca6c8eb91bd426fdd5191d03f02/kyuubi-common/src/main/scala/org/apache/kyuubi/session/AbstractSession.scala#L180-L183
   
   In the implementation of closeOperation, `sessionManager.operationManager.closeOperation(operationHandle)` will be called first.
   
   https://github.com/apache/incubator-kyuubi/blob/4aa93d3cbdb71ca6c8eb91bd426fdd5191d03f02/kyuubi-common/src/main/scala/org/apache/kyuubi/operation/OperationManager.scala#L102-L106
   
   In the implementation of `operationManager.closeOperation`, the operation in operationManager is removed first, and then closed, if an exception occurs in the `operation.close` phase, the `opHandleSet.remove(operationHandle)` in `Session.closeOperation.remove(operationHandle)` will not be executed, which will lead to inconsistency between the operation of OperationManager.handleToOperation and Session.opHandleSet
   
   
   <!-- A clear and concise description of what the bug is. -->
   
   ### 2. Environments
   
   #### 2.1 Versions
   
   - Kyuubi
     - [ ] 1.1.0
     - [ ] 1.0.3
     - [ ] 0.8.x and earlier <!-- Please update Kyuubi, versions of 0.x are no longer supported by the community -->
   
   - Spark
     - [ ] 3.1.x
     - [ ] 3.0.x
     - [ ] 2.4.x and earlier <!-- Please update Spark, versions of 2.x are no longer supported by the community -->
   
   #### 2.2 Kyuubi Configurations
   
   #### 2.3 Spark Configurations
   
   
   ### 3. Steps to reproduce
   
   #### 3.1 Operations
   
   #### 3.2 Expected behavior
   
   <!-- A clear and concise description of what you expected to happen. -->
   
   #### 3.3 Actual behavior
   
   ### 4. Additional context
   
   #### 4.1 Log of the server
   
   #### 4.2 Log of the corresponding engine


-- 
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: dev-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-kyuubi] pan3793 closed issue #961: Call closeOperation function in AbstractSession may cause inconsistencies in the operations held by Session and OpeartionManager

Posted by GitBox <gi...@apache.org>.
pan3793 closed issue #961:
URL: https://github.com/apache/incubator-kyuubi/issues/961


   


-- 
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: dev-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-kyuubi] pan3793 commented on issue #961: Call closeOperation function in AbstractSession may cause inconsistencies in the operations held by Session and OpeartionManager

Posted by GitBox <gi...@apache.org>.
pan3793 commented on issue #961:
URL: https://github.com/apache/incubator-kyuubi/issues/961#issuecomment-901721519


   Would you like to send a PR to fix it?


-- 
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: dev-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-kyuubi] iodone commented on issue #961: Call closeOperation function in AbstractSession may cause inconsistencies in the operations held by Session and OpeartionManager

Posted by GitBox <gi...@apache.org>.
iodone commented on issue #961:
URL: https://github.com/apache/incubator-kyuubi/issues/961#issuecomment-901733275


   > Would you like to send a PR to fix it?
   
   OK


-- 
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: dev-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org