You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aljoscha Krettek (JIRA)" <ji...@apache.org> on 2017/10/02 08:25:02 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 ]

Aljoscha Krettek closed FLINK-5619.
-----------------------------------
       Resolution: Fixed
         Assignee: Aljoscha Krettek
    Fix Version/s: 1.3.3
                   1.4.0

Fixed in master as of 9d7bc7bd66d60329dabb3cbd5d8be3a4f49e823b

Fixed on release-1.3 as of 43d76f008e21d1269ea42d4d5b2ea7f40f6076e9

> 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
>             Fix For: 1.4.0, 1.3.3
>
>
> 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
(v6.4.14#64029)