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

Fix race condition while establishing connection due to multiplexing in ODSP Driver. #23085

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jatgarg
Copy link
Contributor

@jatgarg jatgarg commented Nov 14, 2024

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.

@jatgarg jatgarg self-assigned this Nov 14, 2024
@github-actions github-actions bot added area: driver Driver related issues area: odsp-driver base: main PRs targeted against main branch labels Nov 14, 2024
Copy link
Contributor

@tyler-cai-microsoft tyler-cai-microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@msfluid-bot msfluid-bot left a 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 NameBaseline coveragePR coverageCoverage 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!!

@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Nov 14, 2024

@fluid-example/bundle-size-tests: +590 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 465.72 KB 465.75 KB +35 Bytes
azureClient.js 563.04 KB 563.09 KB +51 Bytes
connectionState.js 724 Bytes 724 Bytes No change
containerRuntime.js 262.34 KB 262.35 KB +14 Bytes
fluidFramework.js 426.99 KB 427.01 KB +14 Bytes
loader.js 134.18 KB 134.19 KB +14 Bytes
map.js 42.71 KB 42.71 KB +7 Bytes
matrix.js 149.84 KB 149.85 KB +7 Bytes
odspClient.js 528.83 KB 528.88 KB +49 Bytes
odspDriver.js 97.88 KB 97.9 KB +21 Bytes
odspPrefetchSnapshot.js 42.81 KB 42.83 KB +14 Bytes
sharedString.js 165.77 KB 165.78 KB +7 Bytes
sharedTree.js 417.45 KB 417.46 KB +7 Bytes
Total Size 3.37 MB 3.37 MB +590 Bytes

Baseline commit: 3fe3fa5

Generated by 🚫 dangerJS against 8010f14

Copy link
Contributor

@alexvy86 alexvy86 left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: driver Driver related issues area: odsp-driver base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants