in server/src/main/java/org/apache/uniffle/server/ShuffleServer.java [160:191]
public void stopServer() throws Exception {
if (jettyServer != null) {
jettyServer.stop();
LOG.info("Jetty Server Stopped!");
}
if (registerHeartBeat != null) {
registerHeartBeat.shutdown();
LOG.info("HeartBeat Stopped!");
}
if (storageManager != null) {
storageManager.stop();
LOG.info("MultiStorage Stopped!");
}
if (healthCheck != null) {
healthCheck.stop();
LOG.info("HealthCheck stopped!");
}
if (metricReporter != null) {
metricReporter.stop();
LOG.info("Metric Reporter Stopped!");
}
SecurityContextFactory.get().getSecurityContext().close();
server.stop();
if (nettyServerEnabled && streamServer != null) {
streamServer.stop();
}
if (executorService != null) {
executorService.shutdownNow();
}
running = false;
LOG.info("RPC Server Stopped!");
}