Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[@azure/event-hubs] Adding
disableDeserialization
option when subscribing #18173[@azure/event-hubs] Adding
disableDeserialization
option when subscribing #18173Changes from 10 commits
883181c
e40e6f2
31ed7f1
d05daeb
06e0690
521ec54
6a0ab36
ef2b570
eababb9
a1ede1f
23264ef
9693d45
567d408
5994422
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR:
@richardpark-msft, @HarshaNalluru Do you recall what is the scenario where we will be trying to decode something that is not a rhea amqp section? This
isRheaAmqpSection
method was introduced in #15939, but the idea of "lets try decodingbody.content
if it exists, otherwise decodebody
itself" was present before as wellThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logged #18216 for follow up here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was added long long ago and we never touched it I believe, and always retained the piece of code.
For both Event Hubs and Service Bus.

Body is not a rhea amqp section if the body is undefined or the typecode is bad somehow.
It feels like it just means we don't understand the body/content, and as the last line of defense, we'll do whatever we used to do before instead of throwing an error.