You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2023/03/22 00:32:00 UTC

[jira] [Commented] (HDDS-7907) [hsync] BlockOutputStream is not thread safe

    [ 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org