You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yun Tang (JIRA)" <ji...@apache.org> on 2019/07/03 07:32:00 UTC
[jira] [Commented] (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=16877586#comment-16877586 ]
Yun Tang commented on FLINK-13072:
----------------------------------
[~zicat] After a quick look, I believe this is not a RocksDBStateBackend bug but the {{input.iterator()}} not thread safe. You could print the details when you get {{mapState}} in your {{valueCount}} method each time, and you could find the two {{mapState}} are not updated consistently.
> 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)