Skip to content

stub: stabilize StreamObserver APIs #7938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

dapengzhang0
Copy link
Member

Resolving #1788

@dapengzhang0 dapengzhang0 requested a review from ejona86 March 3, 2021 23:22
@@ -50,7 +48,6 @@
* <p>DO NOT MOCK: The API is too complex to reliably mock. Use InProcessChannelBuilder to create
* "real" RPCs suitable for testing.
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1788")
public abstract class CallStreamObserver<V> implements StreamObserver<V> {
Copy link
Member

Choose a reason for hiding this comment

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

I thought this class was to remain experimental.

Copy link
Member Author

Choose a reason for hiding this comment

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

If this class remains experimental, then its subclasses should also be experimental. We can not have a stable class extend an experimental class.

Copy link
Member

Choose a reason for hiding this comment

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

We talked of redefining the methods in the subclasses, so the only issue is if someone references CallStreamObserver directly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Reverted CallStreamObserver.java.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually I don't recall the details and don't find anything specific in the experimental API meeting notes or the issue #1788 . @ejona86 What else is needed?

Copy link
Member

Choose a reason for hiding this comment

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

I was referencing #1788 (comment) before.

Copy link
Member Author

Choose a reason for hiding this comment

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

Redefined methods of CallStreamObserver in subclasses.

@dapengzhang0 dapengzhang0 merged commit 2ca28a2 into grpc:master Mar 10, 2021
@dapengzhang0 dapengzhang0 deleted the stabilize-stream-observer branch March 10, 2021 21:41
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants