[
https://issues.apache.org/jira/browse/FLINK-6480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot updated FLINK-6480:
----------------------------------
Labels: auto-deprioritized-major auto-deprioritized-minor (was:
auto-deprioritized-major stale-minor)
Priority: Not a Priority (was: Minor)
This issue was labeled "stale-minor" 7 days ago and has not received any
updates so it is being deprioritized. If this ticket is actually Minor, please
raise the priority and ask a committer to assign you the issue or revive the
public discussion.
> Add executor service parameter Snapshotable::snapshot(...)
> ----------------------------------------------------------
>
> Key: FLINK-6480
> URL: https://issues.apache.org/jira/browse/FLINK-6480
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / State Backends
> Reporter: Stefan Richter
> Priority: Not a Priority
> Labels: auto-deprioritized-major, auto-deprioritized-minor
>
> We could change the way how async snapshots are executed. Currently, the
> snapshot method looks like:
> {code:java}
> RunnableFuture<S> snapshot(
> long checkpointId,
> long timestamp,
> CheckpointStreamFactory streamFactory,
> CheckpointOptions checkpointOptions) throws Exception;
> {code}
> and I would suggest to change this to:
> {code:java}
> Future<S> snapshot(
> long checkpointId,
> long timestamp,
> CheckpointStreamFactory streamFactory,
> CheckpointOptions checkpointOptions,
> ExecutorService executor) throws Exception;
> {code}
> The implication of this change is, that the FutureRunnable can immediately be
> scheduled to the provided executor service. This makes it easier to reason
> about the Future's lifecycle and to parallelize multiple snapshot tasks in an
> operator instance's checkpointing.
> The Future's ownership is only transferred once, from the backend to the
> executor service, so cancelation on shutdown only either happens already in
> the backend or when the executor service is shut down.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)