You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Tzu-Li (Gordon) Tai (JIRA)" <ji...@apache.org> on 2018/03/12 15:34:00 UTC

[jira] [Closed] (FLINK-5619) Consolidate State tests

     [ https://issues.apache.org/jira/browse/FLINK-5619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tzu-Li (Gordon) Tai closed FLINK-5619.
--------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 1.3.3)
                   1.3.4

> Consolidate State tests 
> ------------------------
>
>                 Key: FLINK-5619
>                 URL: https://issues.apache.org/jira/browse/FLINK-5619
>             Project: Flink
>          Issue Type: Bug
>          Components: State Backends, Checkpointing
>    Affects Versions: 1.3.0
>            Reporter: Aljoscha Krettek
>            Assignee: Aljoscha Krettek
>            Priority: Major
>             Fix For: 1.3.4, 1.4.0
>
>
> Right now, there are {{HeapListStateTest}}/{{RocksDBListStateTest}}, {{HeapReducingStateTest}}/{{RocksDBReducingStateTest}} and {{HeapAggregatingStateTest}}/{{RocksDBAggregatingStateTest}}. They test the same thing and should be folded back into {{StateBackendTestBase}} to ensure that all state backends exhibit the same behaviour.
> The Heap-flavoured tests additionally check whether the state table is empty, this can be achieved across all state backends by introducing {{AbstractKeyedStateBackend.numStateEntries()}} that returns the number of all state entries. For the heap backend this would count the number of entries in the state table, for RocksDB this would get an iterator for each column family and count the number of entries.
> This way we have the best coverage for all state backends and ensure that they all behave the same.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)