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

Revert: Reset joinSession cache only on connect_document_error (#20784) #20789

Conversation

pragya91
Copy link
Contributor

@pragya91 pragya91 commented Apr 22, 2024

Reverts #19974 PR which was applied as a performance improvement. In the original PR, we checked for the kind of error received on the socket to decide whether to clear joinSession cache or not and reuse the existing session whenever possible. However a bug was identified where one section of the code was not update to stamp the errorFrom property which is used to perform such check which resulted in the cache never clearing for and the code getting stuck in a loop to continue connection retries.

Impact of revert: There is no compatibility-issue/regression that this revert would introduce, as it was only a perf improvement.

Follow up: Captured in
AB#7833

…soft#20784)

Reverts microsoft#19974 PR which
was applied as a performance improvement. In the original PR, we checked
for the kind of error received on the socket to decide whether to clear
joinSession cache or not and reuse the existing session whenever
possible. However a bug was identified where one section of the code was
not update to stamp the errorFrom property which is used to perform such
check which resulted in the cache never clearing for and the code
getting stuck in a loop to continue connection retries.

Impact of revert: There is no compatibility-issue/regression that this
revert would introduce, as it was only a perf improvement.

Follow up: Captured in
[AB#7833](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/7833)
@msfluid-bot
Copy link
Collaborator

@fluid-example/bundle-size-tests: -66 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 452.29 KB 452.29 KB No change
azureClient.js 545.36 KB 545.35 KB -12 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 255.17 KB 255.17 KB No change
fluidFramework.js 339.39 KB 339.39 KB No change
loader.js 129.89 KB 129.89 KB No change
map.js 41.35 KB 41.35 KB No change
matrix.js 143.62 KB 143.62 KB No change
odspClient.js 513.82 KB 513.82 KB No change
odspDriver.js 97.52 KB 97.52 KB No change
odspPrefetchSnapshot.js 42.39 KB 42.39 KB No change
sharedString.js 161.39 KB 161.39 KB No change
sharedTree.js 339.39 KB 339.39 KB No change
Total Size 3.14 MB 3.14 MB -66 Bytes

Baseline commit: 75a9de2

Generated by 🚫 dangerJS against 53aeb4e

@pragya91 pragya91 merged commit 92a29d7 into microsoft:release/client/2.0.0-rc.3.0 Apr 22, 2024
28 of 29 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants