Program: 162954
Project: 162954
Buggy source:
@Nullable Work processStatelessEvent(final byte eventId,@NotNull final TcpReplicator.TcpSocketChannelEntryWriter writer,@NotNull final ByteBufferBytes reader){
  final StatelessChronicleMap.EventId event=VALUES[eventId];
  long transactionId=reader.readLong();
  long timestamp=transactionId / TcpReplicator.TIMESTAMP_FACTOR;
  byte identifier=reader.readByte();
  int headerSize=reader.readInt();
  reader.skip(headerSize);
switch (event) {
case KEY_SET:
    return keySet(reader,writer,transactionId);
case VALUES:
  return values(reader,writer,transactionId);
case ENTRY_SET:
return entrySet(reader,writer,transactionId);
case PUT_WITHOUT_ACC:
return put(reader,timestamp,identifier);
case PUT_ALL_WITHOUT_ACC:
return putAll(reader,timestamp,identifier);
case REMOVE_WITHOUT_ACC:
return remove(reader,timestamp,identifier);
}
final long sizeLocation=reflectTransactionId(writer.in(),transactionId);
switch (event) {
case LONG_SIZE:
return longSize(writer,sizeLocation);
case IS_EMPTY:
return isEmpty(writer,sizeLocation);
case CONTAINS_KEY:
return containsKey(reader,writer,sizeLocation);
case CONTAINS_VALUE:
return containsValue(reader,writer,sizeLocation);
case GET:
return get(reader,writer,sizeLocation,timestamp);
case PUT:
return put(reader,writer,sizeLocation,timestamp,identifier);
case REMOVE:
return remove(reader,writer,sizeLocation,timestamp,identifier);
case CLEAR:
return clear(writer,sizeLocation,timestamp,identifier);
case REPLACE:
return replace(reader,writer,sizeLocation,timestamp,identifier);
case REPLACE_WITH_OLD_AND_NEW_VALUE:
return replaceWithOldAndNew(reader,writer,sizeLocation,timestamp,identifier);
case PUT_IF_ABSENT:
return putIfAbsent(reader,writer,sizeLocation,timestamp,identifier);
case REMOVE_WITH_VALUE:
return removeWithValue(reader,writer,sizeLocation,timestamp,identifier);
case TO_STRING:
return toString(writer,sizeLocation);
case APPLICATION_VERSION:
return applicationVersion(writer,sizeLocation);
case PERSISTED_DATA_VERSION:
return persistedDataVersion(writer,sizeLocation);
case PUT_ALL:
return putAll(reader,writer,sizeLocation,timestamp,identifier);
case HASH_CODE:
return hashCode(writer,sizeLocation);
case MAP_FOR_KEY:
return mapForKey(reader,writer,sizeLocation);
case PUT_MAPPED:
return putMapped(reader,writer,sizeLocation);
case KEY_BUILDER:
return writeBuilder(writer,sizeLocation,map.keyBuilder);
case VALUE_BUILDER:
return writeBuilder(writer,sizeLocation,map.valueBuilder);
default :
throw new IllegalStateException("String_Node_Str" + event);
}
}

Fixed version (ground truth):
@Nullable Work processStatelessEvent(final byte eventId,@NotNull final TcpReplicator.TcpSocketChannelEntryWriter writer,@NotNull final ByteBufferBytes reader){
  final StatelessChronicleMap.EventId event=VALUES[eventId];
  long transactionId=reader.readLong();
  long timestamp=transactionId / TcpReplicator.TIMESTAMP_FACTOR;
  byte identifier=reader.readByte();
  int headerSize=reader.readInt();
  reader.skip(headerSize);
switch (event) {
case KEY_SET:
    return keySet(reader,writer,transactionId);
case VALUES:
  return values(reader,writer,transactionId);
case ENTRY_SET:
return entrySet(reader,writer,transactionId);
case PUT_WITHOUT_ACC:
return put(reader,timestamp,identifier);
case PUT_ALL_WITHOUT_ACC:
return putAll(reader,timestamp,identifier);
case REMOVE_WITHOUT_ACC:
return remove(reader,timestamp,identifier);
}
final long sizeLocation=reflectTransactionId(writer.in(),transactionId);
switch (event) {
case LONG_SIZE:
return longSize(writer,sizeLocation);
case IS_EMPTY:
return isEmpty(writer,sizeLocation);
case CONTAINS_KEY:
return containsKey(reader,writer,sizeLocation);
case CONTAINS_VALUE:
return containsValue(reader,writer,sizeLocation);
case GET:
return get(reader,writer,sizeLocation,timestamp);
case PUT:
return put(reader,writer,sizeLocation,timestamp,identifier);
case REMOVE:
return remove(reader,writer,sizeLocation,timestamp,identifier);
case CLEAR:
return clear(writer,sizeLocation,timestamp,identifier);
case REPLACE:
return replace(reader,writer,sizeLocation,timestamp,identifier);
case REPLACE_WITH_OLD_AND_NEW_VALUE:
return replaceWithOldAndNew(reader,writer,sizeLocation,timestamp,identifier);
case PUT_IF_ABSENT:
return putIfAbsent(reader,writer,sizeLocation,timestamp,identifier);
case REMOVE_WITH_VALUE:
return removeWithValue(reader,writer,sizeLocation,timestamp,identifier);
case TO_STRING:
return toString(writer,sizeLocation);
case APPLICATION_VERSION:
return applicationVersion(writer,sizeLocation);
case PERSISTED_DATA_VERSION:
return persistedDataVersion(writer,sizeLocation);
case PUT_ALL:
return putAll(reader,writer,sizeLocation,timestamp,identifier);
case HASH_CODE:
return hashCode(writer,sizeLocation);
case MAP_FOR_KEY:
return mapForKey(reader,writer,sizeLocation);
case PUT_MAPPED:
return putMapped(reader,writer,sizeLocation);
case KEY_BUILDER:
return writeBuilder(writer,sizeLocation,keySerializationBuilder);
case VALUE_BUILDER:
return writeBuilder(writer,sizeLocation,valueSerializationBuilder);
default :
throw new IllegalStateException("String_Node_Str" + event);
}
}