You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Fei Hui (Jira)" <ji...@apache.org> on 2019/10/23 12:14:00 UTC

[jira] [Created] (HDFS-14923) Remove dead code from HealthMonitor

Fei Hui created HDFS-14923:
------------------------------

             Summary: Remove dead code from HealthMonitor
                 Key: HDFS-14923
                 URL: https://issues.apache.org/jira/browse/HDFS-14923
             Project: Hadoop HDFS
          Issue Type: Improvement
    Affects Versions: 3.1.3, 3.2.1, 3.3.0
            Reporter: Fei Hui


Dig ZKFC source code and find that the dead code as follow
{code}
public void removeCallback(Callback cb) {
   callbacks.remove(cb);
}

public synchronized void removeServiceStateCallback(ServiceStateCallback cb) {
   serviceStateCallbacks.remove(cb);
}

synchronized HAServiceStatus getLastServiceStatus() {
   return lastServiceState;
}
{code}
It's useless, and should be deleted.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org