src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/WebServerMain.java
@Override // ApplicationMain
  @VisibleForTesting
  public void shutdown() {
    try {
      hsqlDriver.dropConnection();
    } catch (Exception e) {
      LOG.error("Error during shutdown: ", e);
    }
    nameNodeLoader.clear(false);
    runningOperations.clear();
    runningQueries.clear();
    operationService.shutdown();
    try {
      internalService.awaitTermination(1L, TimeUnit.SECONDS);
    } catch (InterruptedException e) {
      LOG.debug("Internal service shutdown interrupted!", e);
    }
    Spark.stop();
  }
/**
   * Shutdown all stateful NNA objects. Should not kill JVM. Goal is that calling `init` again
   * should bring NNA back from persisted state.
   */
Shutdown all stateful NNA objects. Should not kill JVM. Goal is that calling `init` again
should bring NNA back from persisted state.
Shutdown all stateful NNA objects . Should not kill JVM . Goal is that calling ` init ` again should bring NNA back from persisted state .
@Override 
  @VisibleForTesting
  public void shutdown() {
    try {
      hsqlDriver.dropConnection();
    } catch (Exception e) {
      LOG.error("Error during shutdown: ", e);
    }
    nameNodeLoader.clear(false);
    runningOperations.clear();
    runningQueries.clear();
    operationService.shutdown();
    try {
      internalService.awaitTermination(1L, TimeUnit.SECONDS);
    } catch (InterruptedException e) {
      LOG.debug("Internal service shutdown interrupted!", e);
    }
    Spark.stop();
  }
@ Override @ VisibleForTesting public void shutdown ( ) { try { hsqlDriver . dropConnection ( ) ; } catch ( Exception e ) { LOG . error ( "Error during shutdown: " , e ) ; } nameNodeLoader . clear ( false ) ; runningOperations . clear ( ) ; runningQueries . clear ( ) ; operationService . shutdown ( ) ; try { internalService . awaitTermination ( 1L , TimeUnit . SECONDS ) ; } catch ( InterruptedException e ) { LOG . debug ( "Internal service shutdown interrupted!" , e ) ; } Spark . stop ( ) ; }
Shutdown all stateful NNA objects.
Shutdown all stateful NNA objects .
// ApplicationMain