[
https://issues.apache.org/jira/browse/TRAFODION-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15412663#comment-15412663
]
ASF GitHub Bot commented on TRAFODION-2129:
-------------------------------------------
Github user trinakrug commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/645#discussion_r73977174
--- Diff:
core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/transactional/TransactionManager.java
---
@@ -2327,21 +2259,12 @@ public void doCommitDDL(final TransactionState
transactionState) throws Unsucces
throw new UnsuccessfulDDLException(e);
}
- retryCount++;
- if (retryCount < RETRY_ATTEMPTS)
- {
- try {
- Thread.sleep(retrySleep);
- } catch(InterruptedException ex) {
- Thread.currentThread().interrupt();
- }
- retrySleep += TM_SLEEP_INCR;
- }
+ if (retry)
+ retrySleep = retry(retrySleep);
}
- }while (retryCount < RETRY_ATTEMPTS && retry == true);
+ } while (retry == true);
--- End diff --
Why is this while statement different than the rest?
> Trafodion to avoid use of deprecated HBase APIs/Classes
> -------------------------------------------------------
>
> Key: TRAFODION-2129
> URL: https://issues.apache.org/jira/browse/TRAFODION-2129
> Project: Apache Trafodion
> Issue Type: Improvement
> Components: dtm, sql-exe
> Affects Versions: 2.0-incubating
> Reporter: Selvaganesan Govindarajan
> Assignee: Selvaganesan Govindarajan
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> Avoid the use of HConnection, HConnectionManager and, HBaseAdmin in Trafodion
> and use Connection, ConnectionFactory and Admin respectively.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)