rmetzger opened a new pull request #14129:
URL: https://github.com/apache/flink/pull/14129


   
   
   ## What is the purpose of the change
   
   Before the change, everytime the REST UI tried to access the checkpointing 
statistics, an ERROR message was logged.
   
   When using a BATCH job, this leads to log files looking like this:
   
   ```
   2020-11-13 15:27:38,785 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointConfigHandler 
[] - Exception occurred in REST handler: Checkpointing is not enabled for this 
job (6df1c639d1904f8b7a54cf6a649ab567).
   2020-11-13 15:27:38,788 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointConfigHandler 
[] - Exception occurred in REST handler: Checkpointing is not enabled for this 
job (6df1c639d1904f8b7a54cf6a649ab567).
   2020-11-13 15:27:38,788 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointingStatisticsHandler
 [] - Exception occurred in REST handler: Checkpointing has not been enabled.
   2020-11-13 15:27:38,793 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointingStatisticsHandler
 [] - Exception occurred in REST handler: Checkpointing has not been enabled.
   2020-11-13 15:27:38,793 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointConfigHandler 
[] - Exception occurred in REST handler: Checkpointing is not enabled for this 
job (6df1c639d1904f8b7a54cf6a649ab567).
   2020-11-13 15:27:38,797 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointingStatisticsHandler
 [] - Exception occurred in REST handler: Checkpointing has not been enabled.
   2020-11-13 15:27:38,797 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointConfigHandler 
[] - Exception occurred in REST handler: Checkpointing is not enabled for this 
job (6df1c639d1904f8b7a54cf6a649ab567).
   2020-11-13 15:27:38,802 ERROR 
org.apache.flink.runtime.rest.handler.job.checkpoints.CheckpointingStatisticsHandler
 [] - Exception occurred in REST handler: Checkpointing has not been enabled.
   ```
   
   With this change, these log messages are suppressed.
   
   
   ## Brief change log
   
   - Introduce a "log exception" flag to `RestHandlerException`.
   
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to