Skip to content

Conversation

NicoK
Copy link
Contributor

@NicoK NicoK commented Jan 23, 2017

Querying for a non-existing key for a state that has a default value set
currently results in an UnknownKeyOrNamespace exception when the
MemoryStateBackend or FsStateBackend is used but results in the default value
if RocksDBStateBackend is set.

This removes the special handling from the RocksDBStateBackend and makes it
consistent with the other two back-ends, i.e. returning null which results
in the mentioned UnknownKeyOrNamespace exception.

… state backends

Querying for a non-existing key for a state that has a default value set
currently results in an UnknownKeyOrNamespace exception when the
MemoryStateBackend or FsStateBackend is used but results in the default value
if RocksDBStateBackend is set.

This removes the special handling from the RocksDBStateBackend and makes it
consistent with the other two back-ends, i.e. returning null which results
in the mentioned UnknownKeyOrNamespace exception.
@uce
Copy link
Contributor

uce commented Jan 23, 2017

+1 to merge if Travis passes.

@NicoK NicoK changed the title [FLINK-5527][query] querying a non-existing key is inconsistent among state backends [FLINK-5613][query] querying a non-existing key is inconsistent among state backends Jan 23, 2017
@rmetzger
Copy link
Contributor

Merging ...

@asfgit asfgit closed this in da26bdc Jan 23, 2017
joseprupi pushed a commit to joseprupi/flink that referenced this pull request Feb 12, 2017
… state backends

Querying for a non-existing key for a state that has a default value set
currently results in an UnknownKeyOrNamespace exception when the
MemoryStateBackend or FsStateBackend is used but results in the default value
if RocksDBStateBackend is set.

This removes the special handling from the RocksDBStateBackend and makes it
consistent with the other two back-ends, i.e. returning null which results
in the mentioned UnknownKeyOrNamespace exception.

This closes apache#3193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants