public int getActiveOperationsCount() { // refCount is incremented on successful acquire and decremented on close return indexShardOperationPermits.getActiveOperationsCount(); }
indexShardOperationPermits.blockOperations(30, TimeUnit.MINUTES, () -> { assert indexShardOperationPermits.getActiveOperationsCount() == 0 : "in-flight operations in progress while moving shard state to relocated";
public int getActiveOperationsCount() { return indexShardOperationPermits.getActiveOperationsCount(); // refCount is incremented on successful acquire and decremented on close }
indexShardOperationPermits.blockOperations(30, TimeUnit.MINUTES, () -> { assert indexShardOperationPermits.getActiveOperationsCount() == 0 : "in-flight operations in progress while moving shard state to relocated";