[
https://issues.apache.org/jira/browse/FLINK-13795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913303#comment-16913303
]
Chesnay Schepler commented on FLINK-13795:
------------------------------------------
>From the REST API perspective this is expected behavior. Any response by the
>REST API with an error code is logged as an ERROR. There is no easy way to
>circumvent this.
What we could do is make the log level dependent on the error code; server-side
errors (5XX) are logged on ERROR since they inform about an erroneous state in
the system, client-side errors (4XX) are logged as WARN. Note that this would
apply to all responses.
I think it's fine to log something if checkpoint handlers are queried for batch
jobs, or more generally for jobs without checkpointing enabled, but we should
provide a way to check that in a way that doesn't rely on errors. The
CheckpointConfigHandler could be a candidate, but it will be difficult to
change it in a backwards-compatible way. The JobDetailsHandler might be easier
to extend with a simple boolean flag.
With this information being queryable in a nicer way we could change the WebUI
to not even show the checkpoints tab in the first place when checkpointing is
disabled, or show a message a la "Checkpointing is not enabled for this job.".
> Web UI logs errors when selecting Checkpoint Tab for Batch Jobs
> ---------------------------------------------------------------
>
> Key: FLINK-13795
> URL: https://issues.apache.org/jira/browse/FLINK-13795
> Project: Flink
> Issue Type: Bug
> Components: Runtime / REST
> Affects Versions: 1.9.0
> Reporter: Stephan Ewen
> Priority: Major
>
> The logs of the REST endpoint print errors if you run a batch job and then
> select the "Checkpoints" tab.
> I would expect that this simply shows "no checkpoints available for this job"
> and not that an {{ERROR}} level entry appears in the log.
> {code}
> 2019-08-20 12:04:54,195 ERROR
> org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointingStatisticsHandler
> - Exception occurred in REST handler: Checkpointing has not been enabled.
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)