return keySelectorRandom.nextLong() % numEntries;
}
@Override
protected boolean invokeLogic(long keyId) throws Exception {
Operation operation = manager.getOperation(operationTypeRandom);
// In shared mode, we can't ever atomically modify the two keys (main and backup) to have only
// one of them with the actual value (this is not true even for private mode but there the moment
// when we move the value from main to backup or vice versa does not cause any problem, because the
// worst thing is to read slightly outdated value). However, here the invariant holds that the operation