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

MessageID is reused when reusing SendOptions #4613

Closed
timbussmann opened this issue Apr 11, 2017 · 0 comments
Closed

MessageID is reused when reusing SendOptions #4613

timbussmann opened this issue Apr 11, 2017 · 0 comments
Labels
Milestone

Comments

@timbussmann
Copy link
Contributor

timbussmann commented Apr 11, 2017

When reusing SendOptions (or other option classes) for multiple sends, all outgoing messages have the same message id as the message id is generated when the options are instantiated. The following code causes all outgoing messages to use the same id:

var sendOptions = new SendOptions();
sendOptions.RouteToThisEndpoint();
await s.Send(new SomeCommand(), sendOptions);
await s.Send(new SomeCommand(), sendOptions);
await s.Send(new SomeCommand(), sendOptions);

Who's affected

Anyone who is using a the same instance of SendOptions, PublishOptions, ReplyOptions, SubscribeOptions or UnsubscribeOptions on multiple outgoing operations will be affected by this bug.

Symptoms

  • It is possible that you will see more than one message with the same MessageId value in your auditing or error queues, or any tooling that consumes from those queues.
  • When using the Outbox feature, you will see messages sent to one endpoint being discarded as they are perceived to be duplicate due to having the same MessageId as other messages.

Fixed in: 6.2.1

Also back-ported to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants