Skip to content

Return RPCError.kMethodNotFound for streamCpuSamplesWithUserTag #1889

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
Feb 1, 2023

Conversation

elliette
Copy link
Contributor

Work towards #1504:

DWDS should probably only return an error response instead of logging the exception as it's not a fatal error and a bad request from a client shouldn't be treated the same as one.

Also requires DDS (the client in this case) to catch these error response, similar to what is done for setStreamIncludePrivateMembers: https://github.com/dart-lang/sdk/blob/55ffa4a4a3fe65b78ff6d43b72ab7907f3fa0145/pkg/dds/lib/src/stream_manager.dart#L245

@elliette elliette requested a review from bkonyi January 12, 2023 20:29
Copy link
Collaborator

@bkonyi bkonyi left a comment

Choose a reason for hiding this comment

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

LGTM, but wait to publish this change until this CL lands and is published to avoid causing breakages.

copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jan 13, 2023
…rTag`

DWDS does not implement streamCpuSamplesWithUserTag and DDS can invoke
it without being prompted to by a client. This change gracefully handles
the absence of this RPC.

Related DWDS change: dart-lang/webdev#1889

Change-Id: Ic821f39caefd25044c2c4a8b34a8271879c7bd5f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279020
Reviewed-by: Elliott Brooks <[email protected]>
Commit-Queue: Ben Konyi <[email protected]>
@elliette elliette changed the title Return RPCError.kMethodNotFound for streamCpuSamplesWithUserTag [DO NOT SUBMIT] Return RPCError.kMethodNotFound for streamCpuSamplesWithUserTag Jan 13, 2023
@elliette elliette changed the title [DO NOT SUBMIT] Return RPCError.kMethodNotFound for streamCpuSamplesWithUserTag Return RPCError.kMethodNotFound for streamCpuSamplesWithUserTag Feb 1, 2023
@elliette elliette merged commit ba9de7c into dart-lang:master Feb 1, 2023
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