Ren Koike created HDDS-16264:
--------------------------------
Summary: Remove BlockDataStreamOutputEntry wrapper class
Key: HDDS-16264
URL: https://issues.apache.org/jira/browse/HDDS-16264
Project: Apache Ozone
Issue Type: Improvement
Components: Ozone Client
Reporter: Ren Koike
Assignee: Ren Koike
BlockDataStreamOutputEntry (297 lines) wraps BlockDataStreamOutput with lazy
initialization and type-unsafe downcasting. Nearly every non-trivial method
casts its byteBufferStreamOutput field back to BlockDataStreamOutput to access
block-specific methods.
Remove this wrapper and have BlockDataStreamOutputEntryPool manage
BlockDataStreamOutput instances directly. Move lazy init to a factory method.
Update KeyDataStreamOutput to use the concrete type.
This is the first of three entry-wrapper removals (see sub-tasks 9 and 10 for
the Ratis and EC paths).
Verification: all DataStream unit tests (Suite A and Suite B) pass.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]