@Override long finish() { sendQueued(0); long sleepTime = 0; if (loadMsgs.size() > 0) { // find which tablet server had the most load messages sent to it and sleep 13ms for each // load message sleepTime = Collections.max(loadMsgs.values()) * 13; } if (locationLess > 0) { sleepTime = Math.max(Math.max(100L, locationLess), sleepTime); } return sleepTime; }
@Override long finish() throws Exception { bw.close(); long sleepTime = 0; if (unloadingTablets.size() > 0) { // find which tablet server had the most tablets to unload and sleep 13ms for each tablet sleepTime = Collections.max(unloadingTablets.values()) * 13; } return sleepTime; } }
TableOperation.COMPACT, TableOperationExceptionType.NOTFOUND, null); if (serversToFlush.size() == 0 && Tables.getTableState(master.getContext(), tableId) == TableState.OFFLINE) throw new AcceptableThriftTableOperationException(tableId.canonicalID(), null, if (serversToFlush.size() > 0) sleepTime = Collections.max(serversToFlush.values()) * sleepTime;
long waitTime; long maxPerServer = 0; if (serverCounts.size() > 0) { maxPerServer = Collections.max(serverCounts.values()); waitTime = maxPerServer * 10;
TableOperationExceptionType.NOTFOUND, null); if (serversToFlush.size() == 0 && Tables.getTableState(instance, tableId) == TableState.OFFLINE) throw new AcceptableThriftTableOperationException(tableId, null, TableOperation.COMPACT, TableOperationExceptionType.OFFLINE, null); if (serversToFlush.size() > 0)
long waitTime; long maxPerServer = 0; if (serverCounts.size() > 0) { maxPerServer = Collections.max(serverCounts.values()); waitTime = maxPerServer * 10;