azagrebin commented on a change in pull request #7288: [FLINK-9702] Improvement in (de)serialization of keys and values for RocksDB state URL: https://github.com/apache/flink/pull/7288#discussion_r241716805
########## File path: flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBListState.java ########## @@ -343,10 +321,32 @@ public void migrateSerializedValue( prevPosition = in.getPosition(); } try { - return result.isEmpty() ? null : getPreMergedValue(result, elementSerializer, out); + return result.isEmpty() ? null : serializeValueList(result, elementSerializer, DELIMITER); } catch (IOException e) { throw new FlinkRuntimeException("Failed to serialize transformed list", e); } } + + byte[] serializeValueList( Review comment: maybe add static method to AbstractRocksDBState with serialisation output as arg ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services