You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Nico Kruber (Jira)" <ji...@apache.org> on 2022/05/30 09:00:00 UTC
[jira] [Created] (FLINK-27836) RocksDBMapState iteration may stop too early for var-length prefixes
Nico Kruber created FLINK-27836:
-----------------------------------
Summary: RocksDBMapState iteration may stop too early for var-length prefixes
Key: FLINK-27836
URL: https://issues.apache.org/jira/browse/FLINK-27836
Project: Flink
Issue Type: Bug
Components: Runtime / State Backends
Affects Versions: 1.14.4, 1.13.6, 1.15.0
Reporter: Nico Kruber
A similar, yet orthogonal, issue to https://issues.apache.org/jira/browse/FLINK-11141 is that the iterators used in RocksDBMapState iterate over everything with a matching prefix of flink-key and namespace. With var-length serializers for either of them, however, it may return data for unrelated keys and/or namespaces.
It looks like the built-in serializers of Flink are not affected though since they use a var-length encoding that is prefixed with the object's length and thus different lengths will not have the same prefix. More exotic serializers, e.g. relying on a terminating NUL character, may expose the above-mentioned behaviour, though.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)