You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "lynn1.zhang (JIRA)" <ji...@apache.org> on 2019/07/03 09:03:00 UTC

[jira] [Comment Edited] (FLINK-13072) RocksDBStateBachend is not thread safe and data loss silently

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

lynn1.zhang edited comment on FLINK-13072 at 7/3/19 9:02 AM:
-------------------------------------------------------------

[~yunta] from beginning, I also think the {{input.iterator()}} is not thread safe, but I try to print each element, all element print successfully. And I replace from  RocksDBStateBachend to  FsStateBackend, everything is right. I use lock object to lock the state.get() and state.put(), the result is also right.


was (Author: zicat):
from beginning, I also think the {{input.iterator()}} is not thread safe, but I try to print each element, all element print successfully. And I replace from  RocksDBStateBachend to  FsStateBackend, everything is right.

> RocksDBStateBachend is not thread safe and data loss silently
> -------------------------------------------------------------
>
>                 Key: FLINK-13072
>                 URL: https://issues.apache.org/jira/browse/FLINK-13072
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / State Backends
>    Affects Versions: 1.8.0, 1.8.1
>            Reporter: lynn1.zhang
>            Priority: Blocker
>         Attachments: flink-demo.zip
>
>
> I create 2 mapstates in one operator, then create 2 threads in apply method, each thread operate each map state(the operator is same), the expect result is that 2 state have the same result but not. I upload the code, please help to try it.



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