-
Notifications
You must be signed in to change notification settings - Fork 531
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
Fix race condition while establishing connection due to multiplexing in ODSP Driver. #23085
base: main
Are you sure you want to change the base?
Conversation
… listener before connection initialization for odsp
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
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.
Code Coverage Summary
↑ packages.drivers.odsp-driver.src:
Line Coverage Change: 0.05% Branch Coverage Change: 0.06%
Metric Name | Baseline coverage | PR coverage | Coverage Diff |
---|---|---|---|
Branch Coverage | 86.27% | 86.33% | ↑ 0.06% |
Line Coverage | 74.12% | 74.17% | ↑ 0.05% |
Baseline commit: 9485e13
Baseline build: 306922
Happy Coding!!
Code coverage comparison check passed!!
⯅ @fluid-example/bundle-size-tests: +590 Bytes
Baseline commit: 3fe3fa5 |
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.
Left a few comments and questions. And I'll note I'm not very familiar with this space so definitely look for other reviewers like @tyler-cai-microsoft . I'd also like to see successful test pipeline runs from a test/ branch for this change.
packages/drivers/odsp-driver/src/test/socketTests/socketMock.ts
Outdated
Show resolved
Hide resolved
packages/drivers/odsp-driver/src/test/socketTests/socketTests.spec.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Alex Villarreal <[email protected]>
Breaking Changes
AB#22192
Following up on this PR: #23078 which we reverted due to assert 0x245 due to the original change. The assert was caused due to registering "disconnect" listener before the initialization.
In this change, I removed registering a listener as we already have disconnectCore which is triggered on disconnection. So using that for rejecting the promise.