infraio commented on a change in pull request #2657:
URL: https://github.com/apache/hbase/pull/2657#discussion_r524812305



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
##########
@@ -504,7 +506,21 @@ public DeadServer getDeadServers() {
    * @return true if any RS are being processed as dead, false if not
    */
   public boolean areDeadServersInProgress() {
-    return this.deadservers.areDeadServersInProgress();
+    try {
+      return master.getProcedures().stream().anyMatch(p -> p instanceof 
ServerCrashProcedure);
+    } catch (IOException e) {
+      throw new RuntimeException(e);
+    }
+  }
+
+  public boolean isDeadServersInProgress(ServerName serverName) {

Review comment:
       Why add this method?




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


Reply via email to