GlenGeng commented on a change in pull request #1981:
URL: https://github.com/apache/ozone/pull/1981#discussion_r588841438



##########
File path: 
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SequenceIdGenerator.java
##########
@@ -202,8 +203,8 @@ public Boolean allocateBatch(String sequenceIdName,
       }
 
       try {
-        sequenceIdTable.putWithBatch(transactionBuffer
-            .getCurrentBatchOperation(), sequenceIdName, newLastId);
+        transactionBuffer
+            .addToBuffer(sequenceIdTable, sequenceIdName, newLastId);

Review comment:
       You need also remove `Preconditions.checkNotNull(ratisServer);` in line 
248




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to