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: [email protected]
For additional commands, e-mail: [email protected]