[
https://issues.apache.org/jira/browse/HDDS-7907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703420#comment-17703420
]
Tsz-wo Sze commented on HDDS-7907:
----------------------------------
Discussed this with [~weichiu], DFSOutputStream in HDFS requires
synchronization since, when the output stream is being written, some of its
methods such as getCurrentBlockReplication(), getPipeline(), etc. can be
invoked at the same time although the writes are sequential.
The use of BlockOutputStream in Ozone is similar, it also requires
synchronization.
> [hsync] BlockOutputStream is not thread safe
> --------------------------------------------
>
> Key: HDDS-7907
> URL: https://issues.apache.org/jira/browse/HDDS-7907
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Wei-Chiu Chuang
> Assignee: Wei-Chiu Chuang
> Priority: Blocker
>
> Tested the hsync implementation with ycsb + HBase workloads, and discovered
> that hsync is not thread safe. In fact, most of the BlockOutputStream APIs
> looks not thread safe and need to fix.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]