@Test public void testShutdownHandler() throws KeeperException, IOException, CoordinatedStateException, ServiceException { ExecutorService executor = startupMasterExecutor("testShutdownHandler"); CatalogTracker ct = Mockito.mock(CatalogTracker.class); AssignmentManagerWithExtrasForTesting am = setUpMockedAssignmentManager( this.server, this.serverManager); try { processServerShutdownHandler(ct, am, false); } finally { executor.shutdown(); am.shutdown(); ZKAssign.deleteAllNodes(this.watcher); } }
public void shutdown() { synchronized (zkEventWorkerWaitingList){ zkEventWorkerWaitingList.clear(); } threadPoolExecutorService.shutdownNow(); zkEventWorkers.shutdownNow(); regionStateStore.stop(); }
AssignmentManager extends ZooKeeperListener { public void shutdown() { synchronized (zkEventWorkerWaitingList){ zkEventWorkerWaitingList.clear(); } threadPoolExecutorService.shutdownNow(); zkEventWorkers.shutdownNow(); regionStateStore.stop(); } }
AssignmentManager extends ZooKeeperListener { public void shutdown() { synchronized (zkEventWorkerWaitingList){ zkEventWorkerWaitingList.clear(); } threadPoolExecutorService.shutdownNow(); zkEventWorkers.shutdownNow(); regionStateStore.stop(); } AssignmentManager(Server server, ServerManager serverManager,
      CatalogTracker catalogTracker, final LoadBalancer balancer,
      final ExecutorService service, MetricsMaster metricsMaster,
      final TableLockManager tableLockManager); }
AssignmentManager extends ZooKeeperListener { public void shutdown() { synchronized (zkEventWorkerWaitingList){ zkEventWorkerWaitingList.clear(); } threadPoolExecutorService.shutdownNow(); zkEventWorkers.shutdownNow(); regionStateStore.stop(); } AssignmentManager(Server server, ServerManager serverManager,
      CatalogTracker catalogTracker, final LoadBalancer balancer,
      final ExecutorService service, MetricsMaster metricsMaster,
      final TableLockManager tableLockManager); void registerListener(final AssignmentListener listener); boolean unregisterListener(final AssignmentListener listener); TableStateManager getTableStateManager(); RegionStates getRegionStates(); RegionPlan getRegionReopenPlan(HRegionInfo hri); void addPlan(String encodedName, RegionPlan plan); void addPlans(Map<String, RegionPlan> plans); void setRegionsToReopen(List <HRegionInfo> regions); Pair<Integer, Integer> getReopenStatus(TableName tableName); boolean isFailoverCleanupDone(); Lock acquireRegionLock(final String encodedName); void removeClosedRegion(HRegionInfo hri); @Override void nodeCreated(String path); @Override void nodeDataChanged(String path); @Override void nodeDeleted(final String path); @Override void nodeChildrenChanged(String path); void regionOffline(final HRegionInfo regionInfo); void offlineDisabledRegion(HRegionInfo regionInfo); void assign(HRegionInfo region, boolean setOfflineInZK); void assign(HRegionInfo region,
      boolean setOfflineInZK, boolean forceNewPlan); void unassign(HRegionInfo region); void unassign(HRegionInfo region, boolean force, ServerName dest); void unassign(HRegionInfo region, boolean force); void deleteClosingOrClosedNode(HRegionInfo region, ServerName sn); int getNumRegionsOpened(); boolean waitForAssignment(HRegionInfo regionInfo); void assignMeta(); void assign(Map<HRegionInfo, ServerName> regions); void assign(List<HRegionInfo> regions); void updateRegionsInTransitionMetrics(); void waitOnRegionToClearRegionsInTransition(final HRegionInfo hri); boolean waitOnRegionToClearRegionsInTransition(final HRegionInfo hri, long timeOut); boolean isCarryingMeta(ServerName serverName); List<HRegionInfo> processServerShutdown(final ServerName sn); void balance(final RegionPlan plan); void stop(); void shutdown(); LoadBalancer getBalancer(); }
AssignmentManager extends ZooKeeperListener { public void shutdown() { synchronized (zkEventWorkerWaitingList){ zkEventWorkerWaitingList.clear(); } threadPoolExecutorService.shutdownNow(); zkEventWorkers.shutdownNow(); regionStateStore.stop(); } AssignmentManager(Server server, ServerManager serverManager,
      CatalogTracker catalogTracker, final LoadBalancer balancer,
      final ExecutorService service, MetricsMaster metricsMaster,
      final TableLockManager tableLockManager); void registerListener(final AssignmentListener listener); boolean unregisterListener(final AssignmentListener listener); TableStateManager getTableStateManager(); RegionStates getRegionStates(); RegionPlan getRegionReopenPlan(HRegionInfo hri); void addPlan(String encodedName, RegionPlan plan); void addPlans(Map<String, RegionPlan> plans); void setRegionsToReopen(List <HRegionInfo> regions); Pair<Integer, Integer> getReopenStatus(TableName tableName); boolean isFailoverCleanupDone(); Lock acquireRegionLock(final String encodedName); void removeClosedRegion(HRegionInfo hri); @Override void nodeCreated(String path); @Override void nodeDataChanged(String path); @Override void nodeDeleted(final String path); @Override void nodeChildrenChanged(String path); void regionOffline(final HRegionInfo regionInfo); void offlineDisabledRegion(HRegionInfo regionInfo); void assign(HRegionInfo region, boolean setOfflineInZK); void assign(HRegionInfo region,
      boolean setOfflineInZK, boolean forceNewPlan); void unassign(HRegionInfo region); void unassign(HRegionInfo region, boolean force, ServerName dest); void unassign(HRegionInfo region, boolean force); void deleteClosingOrClosedNode(HRegionInfo region, ServerName sn); int getNumRegionsOpened(); boolean waitForAssignment(HRegionInfo regionInfo); void assignMeta(); void assign(Map<HRegionInfo, ServerName> regions); void assign(List<HRegionInfo> regions); void updateRegionsInTransitionMetrics(); void waitOnRegionToClearRegionsInTransition(final HRegionInfo hri); boolean waitOnRegionToClearRegionsInTransition(final HRegionInfo hri, long timeOut); boolean isCarryingMeta(ServerName serverName); List<HRegionInfo> processServerShutdown(final ServerName sn); void balance(final RegionPlan plan); void stop(); void shutdown(); LoadBalancer getBalancer(); static final ServerName HBCK_CODE_SERVERNAME; @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="MS_SHOULD_BE_FINAL")
  static boolean TEST_SKIP_SPLIT_HANDLING; }