rkhachatryan commented on a change in pull request #16401:
URL: https://github.com/apache/flink/pull/16401#discussion_r665321288
##########
File path:
flink-connectors/flink-connector-jdbc/src/test/java/org/apache/flink/connector/jdbc/xa/JdbcExactlyOnceSinkE2eTest.java
##########
@@ -343,10 +360,15 @@ public void snapshotState(FunctionSnapshotContext
context) {
}
private void sleep(Supplier<Boolean> condition) {
+ long start = System.currentTimeMillis();
while (condition.get()
&& running
&& !Thread.currentThread().isInterrupted()
&& haveActiveSources()) {
+ if (System.currentTimeMillis() - start > 10_000) {
+ LOG.debug("Slept more than 10s", new Exception());
Review comment:
I added it just in case, I didn't see any tasks waiting in the latest
failures. I think stacktrace + subtaskIdx + attemptId should be enough.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]