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

Tsz-wo Sze edited comment on HDDS-4474 at 11/24/21, 2:55 AM:
-------------------------------------------------------------

Cast DataStream to SmallFIleStreamDataChannel.  Then we can call the link 
method.
{code}
// ContainerStateMachine
  @Override
  public CompletableFuture<?> link(DataStream stream, LogEntryProto entry) {
    if (stream instanceof SmallFIleStreamDataChannel) {
      return ((SmallFIleStreamDataChannel)stream).link(entry);
    }
    ...
  }
{code}


was (Author: szetszwo):
Cast DataStream in SmallFIleStreamDataChannel.  Then we call call link method 
in SmallFIleStreamDataChannel.
{code}
// ContainerStateMachine
  @Override
  public CompletableFuture<?> link(DataStream stream, LogEntryProto entry) {
    if (stream instanceof SmallFIleStreamDataChannel) {
      return ((SmallFIleStreamDataChannel)stream).link(entry);
    }
    ...
  }
{code}

> Use WriteSmallFile to write small file.
> ---------------------------------------
>
>                 Key: HDDS-4474
>                 URL: https://issues.apache.org/jira/browse/HDDS-4474
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: runzhiwang
>            Assignee: GuoHao
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2021-11-22-19-40-34-715.png
>
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to