Copilot commented on code in PR #7071:
URL: https://github.com/apache/hbase/pull/7071#discussion_r2127842859
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/master/ReplicationLogCleaner.java:
##########
@@ -77,6 +78,12 @@ public void preClean() {
if (this.getConf() == null) {
return;
}
+
+ if (masterService.getAsyncClusterConnection().isClosed()) {
Review Comment:
[nitpick] The asyncClusterConnection closure check is duplicated in both
preClean() and getDeletableFiles(). Consider extracting this logic into a
separate private helper method to reduce code duplication and improve
maintainability.
--
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]