Umeshkumar9414 commented on code in PR #6534:
URL: https://github.com/apache/hbase/pull/6534#discussion_r1887141504


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitWALManager.java:
##########
@@ -184,4 +185,19 @@ public void releaseSplitWALWorker(ServerName worker, 
MasterProcedureScheduler sc
   public void addUsedSplitWALWorker(ServerName worker) {
     splitWorkerAssigner.addUsedWorker(worker);
   }
+
+  public String renameWALForRetry(String walPath, Integer workerChangeCount) 
throws IOException {
+    String originalWALPath;
+    if (workerChangeCount == 0) {
+      originalWALPath = walPath;
+    } else {
+      originalWALPath = walPath.substring(0, walPath.length() - 
RETRYING_EXT.length() - 3);
+    }
+    String walNewName =

Review Comment:
   We call this method in RELEASE_SPLIT_WORKER state. At this time **first 
try** of wal split is already complete. We only reach here if fir try is not 
able to split the wal.



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

Reply via email to