Skip to content

RATIS-2546. Add input stream to DataStreamApi for read operations in Client#1481

Open
peterxcli wants to merge 4 commits into
apache:masterfrom
peterxcli:RATIS-2546-stream-read-client
Open

RATIS-2546. Add input stream to DataStreamApi for read operations in Client#1481
peterxcli wants to merge 4 commits into
apache:masterfrom
peterxcli:RATIS-2546-stream-read-client

Conversation

@peterxcli

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

  • Added a new DataStreamInput interface and its implementation DataStreamInputImpl for asynchronous, zero-copy read-only data streaming, including the readAsync() method for consuming replies and proper resource release on close.
  • Extended the DataStreamApi interface and its implementation to provide streamReadOnly() methods for creating read-only streams.
  • Introduced the new DataStreamReplyByteBuf class to support replies backed by Netty ByteBuf.
  • Added a new overload of streamAsync() in the DataStreamClientRpc interface that takes a reply consumer, supporting multiple replies per request.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-2546

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

Signed-off-by: peterxcli <peterxcli@gmail.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
@peterxcli

Copy link
Copy Markdown
Member Author

cc @szetszwo

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.

1 participant