We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bd6a3 commit f070f0dCopy full SHA for f070f0d
flink-tests/src/test/java/org/apache/flink/runtime/operators/lifecycle/graph/TestEventSource.java
@@ -73,7 +73,8 @@ public void open(Configuration parameters) throws Exception {
73
public void run(SourceContext<TestDataElement> ctx) {
74
long lastSent = 0;
75
while (isRunning) {
76
- TestCommand cmd = scheduledCommands.poll();
+ // Don't finish the source if it has not sent at least one value.
77
+ TestCommand cmd = lastSent == 0 ? null : scheduledCommands.poll();
78
if (cmd == FINISH_SOURCES) {
79
ack(cmd);
80
isRunning = false;
0 commit comments