jojochuang commented on code in PR #6777:
URL: https://github.com/apache/ozone/pull/6777#discussion_r1628612198
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientRatis.java:
##########
@@ -267,50 +266,115 @@ private XceiverClientReply newWatchReply(
@Override
public XceiverClientReply watchForCommit(long index)
- throws InterruptedException, ExecutionException, TimeoutException,
- IOException {
+ throws InterruptedException, ExecutionException {
final long replicatedMin = getReplicatedMinCommitIndex();
if (replicatedMin >= index) {
return newWatchReply(index, "replicatedMin", replicatedMin);
}
+// return watchForCommitInternalOld(index);
+ return watchForCommitInternalNew(index);
+ }
+
+ /**
+ * Old implementation that handles the retry using try-catch with a new
future.
+ */
+ private XceiverClientReply watchForCommitInternalOld(long index)
Review Comment:
dead code.
--
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]