Program: 162970
Project: 162970
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.in(),transactionId);
case VALUES:
  return values(reader,writer.in(),transactionId);
case ENTRY_SET:
return entrySet(reader,writer.in(),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.in(),sizeLocation);
case IS_EMPTY:
return isEmpty(writer.in(),sizeLocation);
case CONTAINS_KEY:
return containsKey(reader,writer.in(),sizeLocation);
case CONTAINS_VALUE:
return containsValue(reader,writer.in(),sizeLocation);
case GET:
return get(reader,writer,sizeLocation,timestamp);
case PUT:
return put(reader,writer,sizeLocation,timestamp,identifier);
case REMOVE:
return remove(reader,writer.in(),sizeLocation,timestamp,identifier);
case CLEAR:
return clear(writer.in(),sizeLocation,timestamp,identifier);
case REPLACE:
return replace(reader,writer,sizeLocation,timestamp,identifier);
case REPLACE_WITH_OLD_AND_NEW_VALUE:
return replaceWithOldAndNew(reader,writer.in(),sizeLocation,timestamp,identifier);
case PUT_IF_ABSENT:
return putIfAbsent(reader,writer,sizeLocation,timestamp,identifier);
case REMOVE_WITH_VALUE:
return removeWithValue(reader,writer.in(),sizeLocation,timestamp,identifier);
case TO_STRING:
return toString(writer.in(),sizeLocation);
case PUT_ALL:
return putAll(reader,writer.in(),sizeLocation,timestamp,identifier);
case HASH_CODE:
return hashCode(writer.in(),sizeLocation);
case MAP_FOR_KEY:
return mapForKey(reader,writer.in(),sizeLocation);
case PUT_MAPPED:
return putMapped(reader,writer.in(),sizeLocation);
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.in(),transactionId);
case VALUES:
  return values(reader,writer.in(),transactionId);
case ENTRY_SET:
return entrySet(reader,writer.in(),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.in(),sizeLocation);
case IS_EMPTY:
return isEmpty(writer.in(),sizeLocation);
case CONTAINS_KEY:
return containsKey(reader,writer.in(),sizeLocation);
case CONTAINS_VALUE:
return containsValue(reader,writer.in(),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.in(),sizeLocation,timestamp,identifier);
case REPLACE:
return replace(reader,writer,sizeLocation,timestamp,identifier);
case REPLACE_WITH_OLD_AND_NEW_VALUE:
return replaceWithOldAndNew(reader,writer.in(),sizeLocation,timestamp,identifier);
case PUT_IF_ABSENT:
return putIfAbsent(reader,writer,sizeLocation,timestamp,identifier);
case REMOVE_WITH_VALUE:
return removeWithValue(reader,writer.in(),sizeLocation,timestamp,identifier);
case TO_STRING:
return toString(writer.in(),sizeLocation);
case PUT_ALL:
return putAll(reader,writer.in(),sizeLocation,timestamp,identifier);
case HASH_CODE:
return hashCode(writer.in(),sizeLocation);
case MAP_FOR_KEY:
return mapForKey(reader,writer.in(),sizeLocation);
case PUT_MAPPED:
return putMapped(reader,writer.in(),sizeLocation);
default :
throw new IllegalStateException("String_Node_Str" + event);
}
}