Skip to content

Commit

Permalink
[FLINK-24088][streaming] Log FlinkJobNotFoundException in debug inste…
Browse files Browse the repository at this point in the history
…ad of warn level in CollectResultFetcher for a cleaner log

This closes apache#17093
  • Loading branch information
tsreaper authored Sep 6, 2021
1 parent 73bb9d3 commit 327a98f
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.flink.core.execution.JobClient;
import org.apache.flink.runtime.dispatcher.UnavailableDispatcherOperationException;
import org.apache.flink.runtime.jobgraph.OperatorID;
import org.apache.flink.runtime.messages.FlinkJobNotFoundException;
import org.apache.flink.runtime.operators.coordination.CoordinationRequestGateway;
import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.Preconditions;
Expand Down Expand Up @@ -130,7 +131,13 @@ public T next() throws IOException {
if (ExceptionUtils.findThrowable(
e, UnavailableDispatcherOperationException.class)
.isPresent()) {
LOG.debug("The job execution has not started yet; cannot fetch results.");
LOG.debug(
"The job execution has not started yet; cannot fetch results.", e);
} else if (ExceptionUtils.findThrowable(e, FlinkJobNotFoundException.class)
.isPresent()) {
LOG.debug(
"The job cannot be found. It is very likely that the job is not in a RUNNING state.",
e);
} else {
LOG.warn("An exception occurred when fetching query results", e);
}
Expand Down

0 comments on commit 327a98f

Please sign in to comment.