Github user dawidwys commented on a diff in the pull request:
https://github.com/apache/flink/pull/6134#discussion_r194346916
--- Diff:
flink-runtime/src/test/java/org/apache/flink/runtime/state/StateBackendTestBase.java
---
@@ -3747,6 +3747,39 @@ public void process(Integer key, ListState<String>
state) throws Exception {
}
}
+ /**
+ * Since {@link AbstractKeyedStateBackend#getKeys(String, Object)}
does't support concurrent modification
+ * and {@link AbstractKeyedStateBackend#applyToAllKeys(Object,
TypeSerializer, StateDescriptor,
+ * KeyedStateFunction)} rely on it to get keys from backend. So we need
this unit test to verify the concurrent
+ * modification with {@link
AbstractKeyedStateBackend#applyToAllKeys(Object, TypeSerializer,
StateDescriptor, KeyedStateFunction)}.
+ */
+ @Test
+ public void
testConcurrentModificationWithApplyToAllKeysAndKeyedStateLambdaFunction()
throws Exception {
--- End diff --
Wasn't the goal of this test to make sure you can pass lambda? Please
correct the name of the test. Maybe: `testApplyToAllKeysLambdaFunction`?
---