jacek-lewandowski commented on code in PR #2064:
URL: https://github.com/apache/cassandra/pull/2064#discussion_r1093257966
##########
src/java/org/apache/cassandra/service/CacheService.java:
##########
@@ -467,9 +467,15 @@ public Future<Pair<KeyCacheKey, AbstractRowIndexEntry>>
deserialize(DataInputPlu
?
SSTableIdFactory.instance.fromBytes(ByteBufferUtil.readWithShortLength(input))
: new
SequenceBasedSSTableId(generation); // Backwards compatibility for "int based
generation sstables"
int typeOrdinal = input.readByte();
- if (typeOrdinal < 0 || typeOrdinal >=
SSTableFormat.Type.values().length)
- throw new IOException("Failed to deserialize key of key cache
- invalid type ordinal " + typeOrdinal);
- SSTableFormat.Type type = SSTableFormat.Type.values()[typeOrdinal];
+ SSTableFormat.Type type;
+ try
+ {
+ type = SSTableFormat.Type.getByOrdinal(typeOrdinal);
Review Comment:
I'll add the identifier as a part of configuration in cassandra.yaml
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]