You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2021/08/16 20:41:54 UTC
[GitHub] [flink] sjwiesman commented on a change in pull request #16849: [FLINK-23728][state-processor-api] Support new state backend factory stack in State Processor API
sjwiesman commented on a change in pull request #16849:
URL: https://github.com/apache/flink/pull/16849#discussion_r689845314
##########
File path: flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/BootstrapTransformation.java
##########
@@ -215,12 +217,23 @@ StreamConfig getConfig(
config.setOperatorName(operatorID.toHexString());
config.setOperatorID(operatorID);
config.setStateBackend(stateBackend);
+ config.setCheckpointStorage(getCheckpointStorage());
// This means leaving this stateBackend unwrapped.
config.setChangelogStateBackendEnabled(TernaryBoolean.FALSE);
config.setManagedMemoryFractionOperatorOfUseCase(ManagedMemoryUseCase.STATE_BACKEND, 1.0);
return config;
}
+ /**
+ * @return A checkpoint storage that will write the resulting savepoint to a DFS. It is
+ * configured with a dummy checkpoint directory to satisfy the API but should only ever be
+ * used for savepoints. This is required to override the default checkpoint directory which
+ * is always in memory.
+ */
+ private static CheckpointStorage getCheckpointStorage() {
+ return new FileSystemCheckpointStorage("file:///tmp/unused");
Review comment:
yeah, that's kind of where I'm at. There aren't any particularly great solutions available here. I will explicitly disable checkpointing in the stream config for added safety.
--
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-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org