Skip to content
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

Handle exception when trying to deserialize data from rbs-ot-correlation-context #8

Open
arielmoraes opened this issue Oct 20, 2022 · 0 comments

Comments

@arielmoraes
Copy link

arielmoraes commented Oct 20, 2022

When passing a Baggage the default behavior is to serialize the Dictionary into a JSON, but the size is not validated thus leading to an exception when trying to deserialize the header rbs-ot-correlation-context.

The problem here is when that happens the Exceptions are not being handled, it is not forwarded to the error queue, thus leading to an infinite loop of message processing. Soon I'll try to attach a reproducible sample.

The line that can raise that exception is

I think we can change the step index to be after the error handling step instead of being the first one or maybe the baggage shouldn't affect the message handling.

concatenator.OnReceive(incomingStep, PipelineAbsolutePosition.Front);

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

No branches or pull requests

1 participant