-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-7708] [flip6] Add CheckpointConfigHandler for new REST endpoint #4744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-7708] [flip6] Add CheckpointConfigHandler for new REST endpoint #4744
Conversation
76ff833 to
e77fb7a
Compare
zentol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 with a minor comment
| public static final String FIELD_NAME_CHECKPOINT_MAX_CONCURRENT = "max_concurrent"; | ||
|
|
||
| public static final String FIELD_NAME_EXTERNALIZED_CHECKPOINT_CONFIG = "externalization"; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line (should fail checkstyle)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching it. Will fix it.
…ndlers The ExecutionGraphCache replaces the ExecutionGraphHolder. Unlike the latter, the former does not expect the AccessExecutionGraph to be the true ExecutionGraph. Instead it assumes it to be the ArchivedExecutionGraph. Therefore, it invalidates the cache entries after a given time to live period. This will trigger requesting the AccessExecutionGraph again and, thus, updating the ExecutionGraph information for the ExecutionGraph based REST handlers. In order to avoid memory leaks, the WebRuntimeMonitor starts now a periodic cleanup task which triggers ExecutionGraphCache.cleanup. This methods releases all cache entries which have exceeded their time to live. Currently it is set to 20 * refreshInterval of the web gui. This closes apache#4728.
This commit implements the CheckpointConfigHandler which now returns a CheckpointConfigInfo object if checkpointing is enabled. In case that checkpointing is disabled for a job, it will return a 404 response.
e77fb7a to
4259fcc
Compare
|
Thanks for the review @zentol. Merging this PR once Travis gives green light. |
This commit implements the CheckpointConfigHandler which now returns a CheckpointConfigInfo object if checkpointing is enabled. In case that checkpointing is disabled for a job, it will return a 404 response. This closes apache#4744.
What is the purpose of the change
This commit implements the CheckpointConfigHandler which now returns a
CheckpointConfigInfo object if checkpointing is enabled. In case that
checkpointing is disabled for a job, it will return a 404 response.
Verifying this change
This change added tests and can be verified as follows:
CheckpointConfigInfoTestchecks the marshalling ofCheckpointConfigInfoDoes this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation