pnowojski opened a new pull request, #23391:
URL: https://github.com/apache/flink/pull/23391

   ## What is the purpose of the change
   
   This adds a DEBUG level log message that contains all checkpoint stats on 
every completed/failed checkpoint. A stop-gap solution until we come up with a 
proper way to expose those stats as metrics somewhere (FLINK-23411).
   
   
   ## Verifying this change
   
   I manually checked log output in some of the ITCases:
   ```
   8299 [jobmanager-io-thread-10] DEBUG 
org.apache.flink.runtime.checkpoint.CheckpointStatsTracker [] - 
CheckpointStatistics (for jobID=cf70776f3762dd273961bd57a2dbdc62, jobName=Flink 
Streaming Job) dump = 
{"className":"completed","id":2,"status":"COMPLETED","is_savepoint":false,"savepointFormat":null,"trigger_timestamp":1694452019812,"latest_ack_timestamp":1694452019823,"checkpointed_size":0,"state_size":0,"end_to_end_duration":11,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":10,"num_acknowledged_subtasks":10,"checkpoint_type":"CHECKPOINT","tasks":{"feca28aff5a3958840bee985ee7de4d3":{"id":2,"status":"COMPLETED","latest_ack_timestamp":1694452019823,"checkpointed_size":0,"state_size":0,"end_to_end_duration":11,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":1,"num_acknowledged_subtasks":1},"8b9f3e513101bcc5d198aee685286d98":{"id":2,"status":"COMPLETED","latest_ack_timestamp":1694452019823,"checkpointed_size":0,"state_size":0,"e
 
nd_to_end_duration":11,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":4,"num_acknowledged_subtasks":4},"51397532e2d9c7a21097a30d590b3114":{"id":2,"status":"COMPLETED","latest_ack_timestamp":1694452019823,"checkpointed_size":0,"state_size":0,"end_to_end_duration":11,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":4,"num_acknowledged_subtasks":4},"bc764cd8ddf7a0cff126f51c16239658":{"id":2,"status":"COMPLETED","latest_ack_timestamp":1694452019823,"checkpointed_size":0,"state_size":0,"end_to_end_duration":11,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":1,"num_acknowledged_subtasks":1}},"external_path":"<checkpoint-not-externally-addressable>","discarded":false}
 
   8357 [Checkpoint Timer] DEBUG 
org.apache.flink.runtime.checkpoint.CheckpointStatsTracker [] - 
CheckpointStatistics (for jobID=cf70776f3762dd273961bd57a2dbdc62, jobName=Flink 
Streaming Job) dump = 
{"className":"failed","id":3,"status":"FAILED","is_savepoint":false,"savepointFormat":null,"trigger_timestamp":1694452019832,"latest_ack_timestamp":-1,"checkpointed_size":0,"state_size":0,"end_to_end_duration":48,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":10,"num_acknowledged_subtasks":0,"checkpoint_type":"CHECKPOINT","tasks":{"feca28aff5a3958840bee985ee7de4d3":{"id":3,"status":"FAILED","latest_ack_timestamp":-1,"checkpointed_size":0,"state_size":0,"end_to_end_duration":-1,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":1,"num_acknowledged_subtasks":0},"8b9f3e513101bcc5d198aee685286d98":{"id":3,"status":"FAILED","latest_ack_timestamp":-1,"checkpointed_size":0,"state_size":0,"end_to_end_duration":-1,"alignment_buffered":0,"proces
 
sed_data":0,"persisted_data":0,"num_subtasks":4,"num_acknowledged_subtasks":0},"51397532e2d9c7a21097a30d590b3114":{"id":3,"status":"FAILED","latest_ack_timestamp":-1,"checkpointed_size":0,"state_size":0,"end_to_end_duration":-1,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":4,"num_acknowledged_subtasks":0},"bc764cd8ddf7a0cff126f51c16239658":{"id":3,"status":"FAILED","latest_ack_timestamp":-1,"checkpointed_size":0,"state_size":0,"end_to_end_duration":-1,"alignment_buffered":0,"processed_data":0,"persisted_data":0,"num_subtasks":1,"num_acknowledged_subtasks":0}},"failure_timestamp":1694452019880,"failure_message":"TaskManager
 received a checkpoint request for unknown task 
4d61cc52dbd40f4ac96e1ebf5f561cba_bc764cd8ddf7a0cff126f51c16239658_0_0. Failure 
reason: Task local checkpoint failure."} 
   ```
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (yes / **no**)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes / **no**)
     - The serializers: (yes / **no** / don't know)
     - The runtime per-record code paths (performance sensitive): (yes / **no** 
/ don't know)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / **no** / don't 
know)
     - The S3 file system connector: (yes / **no** / don't know)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / **no**)
     - If yes, how is the feature documented? (**not applicable** / docs / 
JavaDocs / not documented)
   


-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to