[
https://issues.apache.org/jira/browse/FLINK-5823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15949146#comment-15949146
]
ASF GitHub Bot commented on FLINK-5823:
---------------------------------------
Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/3522#discussion_r108728575
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsStateBackendFactory.java
---
@@ -18,44 +18,47 @@
package org.apache.flink.runtime.state.filesystem;
+import org.apache.flink.annotation.PublicEvolving;
+import org.apache.flink.configuration.ConfigOption;
+import org.apache.flink.configuration.ConfigOptions;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.configuration.IllegalConfigurationException;
import org.apache.flink.core.fs.Path;
import org.apache.flink.runtime.state.StateBackendFactory;
-import java.io.IOException;
+import java.net.URI;
/**
- * A factory that creates an {@link
org.apache.flink.runtime.state.filesystem.FsStateBackend}
- * from a configuration.
+ * A factory that creates an {@link FsStateBackend} from a configuration.
*/
+@PublicEvolving
public class FsStateBackendFactory implements
StateBackendFactory<FsStateBackend> {
-
- /** The key under which the config stores the directory where
checkpoints should be stored */
- public static final String CHECKPOINT_DIRECTORY_URI_CONF_KEY =
"state.backend.fs.checkpointdir";
- /** The key under which the config stores the threshold for state to be
store in memory,
- * rather than in files */
- public static final String MEMORY_THRESHOLD_CONF_KEY =
"state.backend.fs.memory-threshold";
+ /** Config key for the maximum state size that is stored with the
metadata */
+ public static final ConfigOption<Integer> MEMORY_THRESHOLD_CONF =
ConfigOptions
--- End diff --
I'm wondering whether we want to group all relevant state options into a
dedicated `StateOptions` class or keep them in the respective class where they
are used. I fear that it will be quite hard for the user to find all available
options.
> Store Checkpoint Root Metadata in StateBackend (not in HA custom store)
> -----------------------------------------------------------------------
>
> Key: FLINK-5823
> URL: https://issues.apache.org/jira/browse/FLINK-5823
> Project: Flink
> Issue Type: Sub-task
> Components: State Backends, Checkpointing
> Reporter: Stephan Ewen
> Assignee: Stephan Ewen
> Fix For: 1.3.0
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)