use of org.apache.flink.test.streaming.runtime.util.NoOpIntMap in project flink by apache.
the class PartitionerITCase method testForwardFailsHightToLowParallelism.
@Test(expected = UnsupportedOperationException.class)
public void testForwardFailsHightToLowParallelism() throws Exception {
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
// this does a rebalance that works
DataStream<Integer> src = env.fromElements(1, 2, 3).map(new NoOpIntMap());
// this doesn't work because it goes from 3 to 1
src.forward().map(new NoOpIntMap()).setParallelism(1);
env.execute();
}
use of org.apache.flink.test.streaming.runtime.util.NoOpIntMap in project flink by apache.
the class PartitionerITCase method testForwardFailsLowToHighParallelism.
@Test(expected = UnsupportedOperationException.class)
public void testForwardFailsLowToHighParallelism() throws Exception {
StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
DataStream<Integer> src = env.fromElements(1, 2, 3);
// this doesn't work because it goes from 1 to 3
src.forward().map(new NoOpIntMap());
env.execute();
}
Aggregations