flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-7683) Add method to iterate over all of the existing keys in a statebackend
Date Mon, 25 Sep 2017 16:05:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-7683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16179228#comment-16179228

ASF GitHub Bot commented on FLINK-7683:

Github user StefanRRichter commented on a diff in the pull request:

    --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateTable.java
    @@ -287,6 +289,14 @@ public S get(K key, N namespace) {
    +	public Stream<K> getKeys(N namespace) {
    +		return Arrays.stream(primaryTable)
    --- End diff --
    This hash table applies incremental rehashing. This method must also consider the data
stored ``incrementalRehashTable`` if it isn't ``null`` or we can miss some data.

> Add method to iterate over all of the existing keys in a statebackend
> ---------------------------------------------------------------------
>                 Key: FLINK-7683
>                 URL: https://issues.apache.org/jira/browse/FLINK-7683
>             Project: Flink
>          Issue Type: New Feature
>          Components: State Backends, Checkpointing
>            Reporter: Piotr Nowojski
>            Assignee: Piotr Nowojski
> This is required to make possible preserving backward compatibility while changing state
definition of a keyed state operator (to do so operator must iterate over all of the existing
keys and rewrites them into a new state variable).

This message was sent by Atlassian JIRA

View raw message