Re: Adding keyed state to test harness before calling process function.

2020-11-15 Thread Guowei Ma
Hi, Macro I do not find the direct way for doing this.(Maybe other guys know) A possible way might be 1. Build the expected keyed state and get the `OperatorSubtaskState` from an `xxOperatorTestHarness`. 2. Use the `OperatorSubtaskState` to initialize the `xxOperatorTestHarness` that is needed to

Re: Adding keyed state to test harness before calling process function.

2020-11-12 Thread Marco Villalobos
Thank you.. I looked into that, but that does not initialize any values in keyed state, instead, it using key state, and lines 407-412 show that is not setting key state values in advanced, handling null values when it is not set in advance. public void processElement(String value, Context ctx, Co

Re: Adding keyed state to test harness before calling process function.

2020-11-12 Thread Guowei Ma
Hi, Macro I think you could look at testScalingUp() at flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksIncrementalCheckpointRescalingTest.java Best, Guowei On Fri, Nov 13, 2020 at 10:36 AM Marco Villalobos wrote: > Hi, > > I would like