Airblader commented on a change in pull request #17893:
URL: https://github.com/apache/flink/pull/17893#discussion_r758532258
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/CheckpointConfig.java
##########
@@ -437,15 +443,44 @@ public void setTolerableCheckpointFailureNumber(int
tolerableCheckpointFailureNu
*
* <p>The {@link ExternalizedCheckpointCleanup} mode defines how an
externalized checkpoint
* should be cleaned up on job cancellation. If you choose to retain
externalized checkpoints on
- * cancellation you have you handle checkpoint clean up manually when you
cancel the job as well
+ * cancellation you have to handle checkpoint clean-up manually when you
cancel the job as well
* (terminating with job status {@link JobStatus#CANCELED}).
*
* <p>The target directory for externalized checkpoints is configured via
{@link
*
org.apache.flink.configuration.CheckpointingOptions#CHECKPOINTS_DIRECTORY}.
*
- * @param cleanupMode Externalized checkpoint cleanup behaviour.
+ * @param cleanupMode Externalized checkpoint clean-up behaviour.
*/
@PublicEvolving
+ public void setExternalizedCheckpointCleanup(ExternalizedCheckpointCleanup
cleanupMode) {
+ this.externalizedCheckpointCleanup = checkNotNull(cleanupMode);
+ }
+
+ /**
+ * Sets the mode for externalized checkpoint clean-up. Externalized
checkpoints will be enabled
+ * * automatically unless the mode is set to {@link
Review comment:
```suggestion
* automatically unless the mode is set to {@link
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]