File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
flink-tests/src/test/java/org/apache/flink/test/checkpointing Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,16 @@ public void apply(
196
196
}
197
197
198
198
@ Test
199
- public void testTumblingTimeWindowWithKVState () {
199
+ public void testTumblingTimeWindowWithKVStateMinMaxParallelism () {
200
+ doTestTumblingTimeWindowWithKVState (PARALLELISM );
201
+ }
202
+
203
+ @ Test
204
+ public void testTumblingTimeWindowWithKVStateMaxMaxParallelism () {
205
+ doTestTumblingTimeWindowWithKVState (1 << 15 );
206
+ }
207
+
208
+ public void doTestTumblingTimeWindowWithKVState (int maxParallelism ) {
200
209
final int NUM_ELEMENTS_PER_KEY = 3000 ;
201
210
final int WINDOW_SIZE = 100 ;
202
211
final int NUM_KEYS = 100 ;
@@ -207,6 +216,7 @@ public void testTumblingTimeWindowWithKVState() {
207
216
"localhost" , cluster .getLeaderRPCPort ());
208
217
209
218
env .setParallelism (PARALLELISM );
219
+ env .setMaxParallelism (maxParallelism );
210
220
env .setStreamTimeCharacteristic (TimeCharacteristic .EventTime );
211
221
env .enableCheckpointing (100 );
212
222
env .setRestartStrategy (RestartStrategies .fixedDelayRestart (3 , 0 ));
You can’t perform that action at this time.
0 commit comments