Skip to content

Commit

Permalink
Prevent NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Oct 24, 2023
1 parent e187154 commit c161e55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,16 @@ private TableMgmtStats manageTablets(Iterator<TabletManagement> iter,
throws BadLocationStateException, TException, DistributedStoreException, WalMarkerException,
IOException {

TableMgmtStats tableMgmtStats = new TableMgmtStats();
final boolean shuttingDownAllTabletServers =
manager.serversToShutdown.equals(currentTServers.keySet());
if (shuttingDownAllTabletServers && !isFullScan) {
// If we are shutting down all of the TabletServers, then don't process any events
// from the EventCoordinator.
LOG.debug("Partial scan requested, but aborted due to shutdown of all TabletServers");
return null;
return tableMgmtStats;
}

TableMgmtStats tableMgmtStats = new TableMgmtStats();
int unloaded = 0;

Map<TableId,MergeInfo> currentMerges = new HashMap<>();
Expand Down

0 comments on commit c161e55

Please sign in to comment.