Skip to content

Commit

Permalink
[runners-flink] apache#28258 Wait infinitely if the duration value is…
Browse files Browse the repository at this point in the history
… less than 1ms in FlinkDetachedRunnerResult
  • Loading branch information
ddebowczyk92 committed Sep 5, 2023
1 parent 3364271 commit 77dfa5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public State waitUntilFinish(Duration duration) {
long start = System.currentTimeMillis();
long durationInMillis = duration.getMillis();
State state = State.UNKNOWN;
while ((System.currentTimeMillis() - start) < durationInMillis) {
while (durationInMillis < 1 || (System.currentTimeMillis() - start) < durationInMillis) {
state = getState();
if (state.isTerminal()) {
return state;
Expand Down

0 comments on commit 77dfa5a

Please sign in to comment.