[ 
https://issues.apache.org/jira/browse/FLINK-10578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16653356#comment-16653356
 ] 

Kostas Kloudas commented on FLINK-10578:
----------------------------------------

Hi [~wind_ljy]

As a first note, such a feature should be available with all state backends, 
including RocksDB.

In addition, you may "touch" few objects but acquiring a lock, even without 
contention, introduces an overhead to the per-record processing path.

Apart from performance, this mechanism can break the fault-tolerance guarantees 
offered by Flink, as there is no integration of the updates with Flink's 
checkpointing mechanism. You may issue an update but depending on random 
circumstances (e.g. network) it may arrive before or after a checkpoint without 
any guarantees. So if a failure happens, the update may or may not be in the 
state.

If you integrate your "update" stream with checkpointing, then this becomes the 
already offered "connected streams" feature of Flink.

Given the above, can't you use connected streams for your usecase?

In addition, you can have a look at the Dev Mailing list at the thread with 
title: 
"[Proposal] Utilities for reading, transforming and creating Streaming 
savepoints"
there, other users with the same problem propose the addition of a tool that 
allows to create savepoints externally, so that you can use them to bootstrap 
the state of your job.


> Support writable state in QueryableStateClient
> ----------------------------------------------
>
>                 Key: FLINK-10578
>                 URL: https://issues.apache.org/jira/browse/FLINK-10578
>             Project: Flink
>          Issue Type: New Feature
>          Components: Queryable State, State Backends, Checkpointing
>            Reporter: Jiayi Liao
>            Assignee: Jiayi Liao
>            Priority: Major
>
> I can see that now we support queryable state, why don't we also support the 
> writable state? I've already done this on our own business to initialize the 
> state in window during the program's first run. I think other companies may 
> have other needs to modify the state from outside the job.
> The synchronization is a problem but from my perspective, very few objects 
> will be affected because we can directly operate on the stateTable(for the 
> FsStateBackend), and about the performance, I think it'll be okay if users 
> know about it.
> I'm not very aware of what will be affected except what I said above, please 
> let me know more if anyone has doubt about this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to