Apache9 commented on code in PR #7071:
URL: https://github.com/apache/hbase/pull/7071#discussion_r2176329852


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/master/ReplicationLogCleaner.java:
##########
@@ -271,4 +283,13 @@ public void stop(String why) {
   public boolean isStopped() {
     return this.stopped;
   }
+
+  /**
+   * Check if asyncClusterConnection is closed
+   * @return true if asyncClusterConnection is not null and is closed, false 
otherwise
+   */
+  private boolean isAsyncClusterConnectionClosed() {
+    AsyncClusterConnection asyncClusterConnection = 
masterService.getAsyncClusterConnection();
+    return asyncClusterConnection != null && asyncClusterConnection.isClosed();

Review Comment:
   If asyncClusterConnection is null, we should also skip the deletion check?



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