ivanzlenko commented on code in PR #6903:
URL: https://github.com/apache/ignite-3/pull/6903#discussion_r2494210846
##########
modules/metastorage/src/main/java/org/apache/ignite/internal/metastorage/server/raft/MetaStorageWriteHandler.java:
##########
@@ -392,10 +407,17 @@ void onSnapshotLoad() {
CommandId commandId =
CommandId.fromString(commandIdString);
Serializable result;
- if (entry.value().length == 1) {
- result = byteToBoolean(entry.value()[0]);
+
+ byte[] entryValue = entry.value();
+
+ assert entryValue != null;
+
+ // We can have byte arrays of length 1 not only for
boolean values, so we must parse them correctly
Review Comment:
For MultiInvokeCommand it is any byte array.
--
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]