Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
import org.apache.hadoop.hdds.tracing.TracingUtil;
import org.apache.hadoop.hdds.utils.HddsServerUtil;
import org.apache.hadoop.hdds.utils.HddsVersionInfo;
import org.apache.hadoop.hdds.utils.IOUtils;
import org.apache.hadoop.metrics2.util.MBeans;
import org.apache.hadoop.ozone.container.common.DatanodeLayoutStorage;
import org.apache.hadoop.ozone.container.common.helpers.ContainerUtils;
Expand Down Expand Up @@ -579,6 +580,7 @@ public void stop() {
}
}
}
IOUtils.close(LOG, reconfigurationHandler);
if (datanodeStateMachine != null) {
datanodeStateMachine.stopDaemon();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ public ReconfigurationTaskStatus getReconfigureStatus() throws IOException {
@Override
public List<String> listReconfigureProperties() throws IOException {
requireAdminPrivilege.accept("listReconfigurableProperties");
Set<String> reconfigureProperties = new TreeSet<>(getReconfigurableProperties());
reconfigureProperties.addAll(prefixProperties);
return new ArrayList<>(reconfigureProperties);
return new ArrayList<>(new TreeSet<>(getReconfigurableProperties()));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ private void persistSCMCertificates() throws IOException {
public void stop() {
if (isStopped.getAndSet(true)) {
LOG.info("Storage Container Manager is not running.");
IOUtils.close(LOG, scmHAManager);
IOUtils.close(LOG, reconfigurationHandler, scmHAManager);
stopReplicationManager(); // started eagerly
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
import org.apache.hadoop.hdds.server.http.RatisDropwizardExports;
import org.apache.hadoop.hdds.utils.HAUtils;
import org.apache.hadoop.hdds.utils.HddsServerUtil;
import org.apache.hadoop.hdds.utils.IOUtils;
import org.apache.hadoop.hdds.utils.LegacyHadoopConfigurationSource;
import org.apache.hadoop.hdds.utils.ProtocolMessageMetrics;
import org.apache.hadoop.hdds.utils.TransactionInfo;
Expand Down Expand Up @@ -2379,6 +2380,7 @@ public boolean stop() {
}
try {
omState = State.STOPPED;
IOUtils.close(LOG, reconfigurationHandler);
// Cancel the metrics timer and set to null.
if (metricsTimer != null) {
metricsTimer.cancel();
Expand Down