[ 
https://issues.apache.org/jira/browse/HDDS-15499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18087109#comment-18087109
 ] 

Tsz-wo Sze edited comment on HDDS-15499 at 6/9/26 10:13 PM:
------------------------------------------------------------

Some details in the current code:
# get the BlockID from WriteChunkRequestProto
# pass the BlockID via getStreamDataChannel(..) methods in the related class in 
order to get the block file (a local file)
# use the file to create KeyValueStreamDataChannel.

Suggested changes:
# Include BlockData in WriteChunkResponseProto for PutBlock (similar to 
HDDS-9130)
# Pass WriteChunkRequestProto down to KeyValueStreamDataChannel
# Execute PutBlock when closing KeyValueStreamDataChannel


was (Author: szetszwo):
Some details in he current code:
# get the BlockID from WriteChunkRequestProto
# pass the BlockID via getStreamDataChannel(..) methods in the related class in 
order to get the block file (a local file)
# use the file to create KeyValueStreamDataChannel.

Suggested changes:
# Include BlockData in WriteChunkResponseProto for PutBlock (similar to 
HDDS-9130)
# Pass WriteChunkRequestProto down to KeyValueStreamDataChannel
# Execute PutBlock when closing KeyValueStreamDataChannel

> Execute PutBlock when closing KeyValueStreamDataChannel
> -------------------------------------------------------
>
>                 Key: HDDS-15499
>                 URL: https://issues.apache.org/jira/browse/HDDS-15499
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Datanode
>            Reporter: Tsz-wo Sze
>            Assignee: Rishabh Patel
>            Priority: Major
>
> A WriteChunkRequestProto is included in the stream header when creating the 
> stream.  
> - Existing: In Write Pipeline V2, the WriteChunk request is submitted by the 
> client as a Raft request.  Client sends PutBlock when calling flush() or 
> close().
> - This JIRA: In Write Pipeline V3, when closing the 
> KeyValueStreamDataChannel, execute the PutBlock.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to