提交 67b380d6 编写于 作者: M Maximilian Michels

[FLINK-3265][tests] adapt RMQSource checkpointing test to runtime behavior

The methods snapshotState and notifyCheckpointComplete are always
mutually exclusive. The RMQSource relies on this but the test makes a
false assumption when it calls those two methods at the same time.

This closes #1569.
上级 83e6a2b5
......@@ -140,7 +140,9 @@ public class RMQSourceTest {
}
// check if the messages are being acknowledged and the transaction comitted
source.notifyCheckpointComplete(snapshotId);
synchronized (DummySourceContext.lock) {
source.notifyCheckpointComplete(snapshotId);
}
totalNumberOfAcks += numIds;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册