Skip to content

RATIS-2642. Command API in data stream can be optional - #1546

Merged
szetszwo merged 1 commit into
apache:masterfrom
amaliujia:commmand_api_default
Aug 5, 2026
Merged

RATIS-2642. Command API in data stream can be optional#1546
szetszwo merged 1 commit into
apache:masterfrom
amaliujia:commmand_api_default

Conversation

@amaliujia

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Command API in data stream has a default implementation so the the implementor is not forced to write it after the upgrade. This also means the new API is optional.

What is the link to the Apache JIRA

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

How was this patch tested?

compliation pass.

@amaliujia

amaliujia commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@szetszwo trying this API in Ozone and saw un-relevant tests failed to compile because they extend DataStreamOutput, and there is no need to ask those places to implement command API because that is irrelevant.

So thinking if have the new API as optional could be a good idea.

@szetszwo szetszwo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 the change looks good.

@szetszwo
szetszwo merged commit 8672ca9 into apache:master Aug 5, 2026
16 checks passed
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