StoreTransaction txh = null;
try {
txh = manager.beginTransaction(new StoreTxConfig(metricsPrefix));
long current = getCurrentID(partitionKey, txh);
if (Long.MAX_VALUE - blockSize <= current) {
throw new IDPoolExhaustedException("Exhausted id block for partition ["+partition+"]");
}
assert Long.MAX_VALUE - blockSize > current;
long next = current + blockSize;
idStore.mutate(partitionKey, ImmutableList.of(StaticBufferEntry.of(DEFAULT_COLUMN, ByteBufferUtil.getLongBuffer(next))), KeyColumnValueStore.NO_DELETIONS, txh);