[ 
https://issues.apache.org/jira/browse/HIVE-28788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhihua Deng updated HIVE-28788:
-------------------------------
    Description: 
If there is an exception on committing the transaction, 
[https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L658,]
 the ObjectStore will skip the transaction rollback, as the openTrasactionCalls 
is 0, the current transaction might be alive until the RetryingHMSHandler 
retries the operation(after 2s) or the client closes the connection, leading to 
the connection starvation during that time.

 

  was:
If there is an exception on committing the transaction, 
[https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L658,]
 the ObjectStore will skip the transaction rollback, as the openTrasactionCalls 
is 0, the current transaction might be alive until the RetryingHMSHandler 
retries the operation or the client closes the connection, leading to the 
connection starvation during that time.

 


> ObjectStore failed to commit the transaction could lead to connection 
> starvation
> --------------------------------------------------------------------------------
>
>                 Key: HIVE-28788
>                 URL: https://issues.apache.org/jira/browse/HIVE-28788
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Zhihua Deng
>            Assignee: Zhihua Deng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> If there is an exception on committing the transaction, 
> [https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L658,]
>  the ObjectStore will skip the transaction rollback, as the 
> openTrasactionCalls is 0, the current transaction might be alive until the 
> RetryingHMSHandler retries the operation(after 2s) or the client closes the 
> connection, leading to the connection starvation during that time.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to