deniskuzZ commented on code in PR #4566:
URL: https://github.com/apache/hive/pull/4566#discussion_r1418963638
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java:
##########
@@ -514,112 +365,19 @@ public Configuration getConf() {
@Override
@RetrySemantics.ReadOnly
public GetOpenTxnsInfoResponse getOpenTxnsInfo() throws MetaException {
- return getOpenTxnsList(true).toOpenTxnsInfoResponse();
+ return jdbcResource.execute(new GetOpenTxnsListHandler(true,
openTxnTimeOutMillis)).toOpenTxnsInfoResponse();
}
@Override
@RetrySemantics.ReadOnly
public GetOpenTxnsResponse getOpenTxns() throws MetaException {
- return
getOpenTxnsList(false).toOpenTxnsResponse(Arrays.asList(TxnType.READ_ONLY));
- }
-
- private GetOpenTxnsResponse getOpenTxns(Connection dbConn) throws
MetaException {
- return getOpenTxnsList(false,
dbConn).toOpenTxnsResponse(Arrays.asList(TxnType.READ_ONLY));
+ return jdbcResource.execute(new GetOpenTxnsListHandler(false,
openTxnTimeOutMillis)).toOpenTxnsResponse(Collections.singletonList(TxnType.READ_ONLY));
Review Comment:
too long
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]