Skip to content

Comments

HDDS-10796. Avoid dummy KeyOutputStream in OzoneOutputStreamStub#6623

Merged
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-10796
May 3, 2024
Merged

HDDS-10796. Avoid dummy KeyOutputStream in OzoneOutputStreamStub#6623
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-10796

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

OzoneOutputStreamStub.getKeyOutputStream() returns a dummy KeyOutputStream, which has no relation to the underlying stream (the one passed to parent OzoneOutputStream class).

This PR eliminates the need for the dummy KeyOutputStream. The only caller (ObjectEndpoint) can access it via OzoneOutputStream, so the stub's custom logic is not bypassed.

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

How was this patch tested?

CI:
https://github.com/adoroszlai/ozone/actions/runs/8928970232

@adoroszlai adoroszlai self-assigned this May 2, 2024
@adoroszlai adoroszlai requested review from ivandika3 and xichen01 May 2, 2024 20:54
Copy link
Contributor

@ivandika3 ivandika3 left a comment

Choose a reason for hiding this comment

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

Thanks @adoroszlai for the improvement. LGTM +1.

@adoroszlai adoroszlai merged commit 73b35ec into apache:master May 3, 2024
@adoroszlai adoroszlai deleted the HDDS-10796 branch May 3, 2024 13:04
@adoroszlai
Copy link
Contributor Author

Thanks @ivandika3 for the review.

jojochuang pushed a commit to jojochuang/ozone that referenced this pull request May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants