Skip to content

Conversation

@jojochuang
Copy link
Contributor

@jojochuang jojochuang commented Apr 21, 2023

What changes were proposed in this pull request?

Synchronize every public interface of KeyOutputStream.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7907

How was this patch tested?

Unit test. Will also verify using HBase workloads too.

Change-Id: I285cb100852d2a8ce7c563fc580dcc7d921d3a5b
@jojochuang
Copy link
Contributor Author

@szetszwo The fix is not ready yet. I'd like to ask you for review when I update the PR with the fix. Thanks!

Change-Id: Ic39cfc5e98e5736c3b9ae7b8c4ea0a7a88ad8e91
@jojochuang jojochuang changed the title Reproduction test for HDDS-7907 HDDS-7907. [hsync] BlockOutputStream is not thread safe. Apr 21, 2023
@jojochuang jojochuang marked this pull request as ready for review April 21, 2023 19:06
@kerneltime kerneltime requested a review from szetszwo April 24, 2023 16:12
Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@jojochuang
Copy link
Contributor Author

Thanks for the review! I'll actually update the PR and jira description. It turns out that just making BlockOutputStream synchronized is not enough. I ended up having to synchronize KeyOutputStream.

Re-trigger the test just to double check.

@jojochuang jojochuang changed the title HDDS-7907. [hsync] BlockOutputStream is not thread safe. HDDS-7907. [hsync] KeyOutputStream is not thread safe. Apr 24, 2023
@jojochuang jojochuang merged commit e74fccb into apache:master Apr 25, 2023
@jojochuang jojochuang added the hbase HBase on Ozone support label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hbase HBase on Ozone support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants