-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fixes "messages get sent out-of-order when a backlog is created by another thread" #1779
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
Conversation
This reverts commit a9972e1.
|
Hm. Only one test failure on appveyor, and seems like it could just be not enough worker threads again?
|
|
Talked about this on the call - this is the remaining failure I'm seeing but very rarely - we need a log of it (I added to the logging) to get more info about the cause. Merging main in here to get better logging. |
|
@NickCraver Any questions on this PR still? It is still needed to prevent ordinary user messages being sent out of order based on race conditions. |
|
@TimLovellSmith hoping to get time on it tomorrow or Friday, busy release and house week here - just need to wrap my head around it, basics seem sound. |
|
cc for @mgravell eyes |
|
Fired up benchmarks here, we're within jitter. The main concern was around performance but with this inlined the 99.99% case is a bool check on the queue: Main:
Branch:
|
NickCraver
left a comment
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.
I want to double check this with @mgravell Monday, but I think we're good 👍 - nice work @TimLovellSmith!
|
@mgravell, did you have any concerns with this change? If not, I'll pull it into an internal release for our impacted teams. |
|
@philon-msft I'm reviewing it this morning; will let you know! |
mgravell
left a comment
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.
LGTM
|
@philon-msft v2.2.62 |
|
Cool, its in! Thank you for the extensive benchmarking and reviewing of this and the related backlog changes Nick and Marc. |
Fixes #1719.