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

Dmitriy Linevich updated FLINK-33034:
-------------------------------------
    Description: 
In this test first namespace 'ns1' doesn't exist in state, because creating 
ValueState is incorrect for test (When creating the 2nd value state namespace 
'ns1' is overwritten by namespace 'ns2'). Need to fix it, to change creating 
ValueState or to change process of updating this state.

 

If to add following code for checking count of adding namespaces to state 
[here|https://github.com/apache/flink/blob/3e6a1aab0712acec3e9fcc955a28f2598f019377/flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java#L501C28-L501C28]
{code:java}
assertThat(keysByNamespace.size(), is(2)); {code}
then

!image-2023-09-05-12-51-28-203.png!

  was:
In this test first namespace 'ns1' doesn't exist in state, because creating 
ValueState is incorrect for test. Need ti fix it to change creating ValueState 
or to change process of updating this state.

 

If to add following code for checking count of adding namespaces to state 
[here|https://github.com/apache/flink/blob/3e6a1aab0712acec3e9fcc955a28f2598f019377/flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java#L501C28-L501C28]
{code:java}
assertThat(keysByNamespace.size(), is(2)); {code}
then

!image-2023-09-05-12-51-28-203.png!


> Incorrect StateBackendTestBase#testGetKeysAndNamespaces
> -------------------------------------------------------
>
>                 Key: FLINK-33034
>                 URL: https://issues.apache.org/jira/browse/FLINK-33034
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / State Backends
>    Affects Versions: 1.12.2, 1.15.0, 1.17.1
>            Reporter: Dmitriy Linevich
>            Assignee: Dmitriy Linevich
>            Priority: Minor
>         Attachments: image-2023-09-05-12-51-28-203.png
>
>
> In this test first namespace 'ns1' doesn't exist in state, because creating 
> ValueState is incorrect for test (When creating the 2nd value state namespace 
> 'ns1' is overwritten by namespace 'ns2'). Need to fix it, to change creating 
> ValueState or to change process of updating this state.
>  
> If to add following code for checking count of adding namespaces to state 
> [here|https://github.com/apache/flink/blob/3e6a1aab0712acec3e9fcc955a28f2598f019377/flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java#L501C28-L501C28]
> {code:java}
> assertThat(keysByNamespace.size(), is(2)); {code}
> then
> !image-2023-09-05-12-51-28-203.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to