Fix test Failure: MixedModeFrom3LoggedBatchTest.testSimpleStrategy

The problem was that read command is deserialising serialisedAt epoch as null by default and not as Empty, causing NPE.

Patch by Alex Petrov; reviewed by Sam Tunnicliffe CASSANDRA-19066.
This commit is contained in:
Alex Petrov 2023-12-01 13:03:12 +01:00
parent e182744cd0
commit f36a518208
1 changed files with 2 additions and 2 deletions

View File

@ -1132,8 +1132,8 @@ public abstract class ReadCommand extends AbstractReadQuery
int digestVersion = isDigest ? (int)in.readUnsignedVInt() : 0;
TableId tableId = TableId.deserialize(in);
Epoch schemaVersion = null;
if (version >= MessagingService.VERSION_50)
Epoch schemaVersion = Epoch.EMPTY;
if (version >= MessagingService.VERSION_51)
schemaVersion = Epoch.serializer.deserialize(in);
TableMetadata tableMetadata;
try