mirror of https://github.com/apache/cassandra
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:
parent
e182744cd0
commit
f36a518208
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue