You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zhihua Deng (Jira)" <ji...@apache.org> on 2025/03/28 09:56:00 UTC

[jira] [Resolved] (HIVE-28788) ObjectStore failed to commit the transaction could lead to connection starvation

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

Zhihua Deng resolved HIVE-28788.
--------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

> 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 successfully or the client closes the connection, leading to the connection starvation during that time, especially for the ObjectStore secondary pool, which has a size of 2.
>  



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