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

Populating sub directories correctly in Shared Directory (#15982) #15991

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

noencke
Copy link
Contributor

@noencke noencke commented Jun 14, 2023

Description

Populating sub directories correctly in Shared Directory. When we serialize a new directory on attach and record the csn which is -1 for a newly create one, then on load, we load with -1 csn for that. Now there is no create op for this subdir. So when a new subdir is added in that dir and create op comes for that, it does not pass this check below and we don't process that op.

(this.sequenceNumber !== -1 && this.sequenceNumber <= msg.referenceSequenceNumber)

## Description

Populating sub directories correctly in Shared Directory.
When we serialize a new directory on attach and record the csn which is
-1 for a newly create one, then on load, we load with -1 csn for that.
Now there is no create op for this subdir. So when a new subdir is added
in that dir and create op comes for that, it does not pass this check
below and we don't process that op.

https://github.com/microsoft/FluidFramework/blob/a51cd2afc8fb11e11c083f9f62fa9e69727e6845/packages/dds/map/src/directory.ts#L2150

---------

Co-authored-by: Jatin Garg <[email protected]>
@noencke noencke requested a review from a team as a code owner June 14, 2023 18:00
@github-actions github-actions bot added area: dds Issues related to distributed data structures base: release PRs targeted against a release branch labels Jun 14, 2023
@noencke noencke requested review from jatgarg and kian-thompson June 14, 2023 18:01
@msfluid-bot
Copy link
Collaborator

@fluid-example/bundle-size-tests: +40 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 448.8 KB 448.82 KB +16 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 239.44 KB 239.45 KB +2 Bytes
loader.js 154.44 KB 154.45 KB +4 Bytes
map.js 46.66 KB 46.66 KB +2 Bytes
matrix.js 146.59 KB 146.59 KB +2 Bytes
odspDriver.js 92.3 KB 92.31 KB +6 Bytes
odspPrefetchSnapshot.js 43.64 KB 43.64 KB +4 Bytes
sharedString.js 163.26 KB 163.27 KB +2 Bytes
sharedTree2.js 278.84 KB 278.84 KB No change
Total Size 1.73 MB 1.73 MB +40 Bytes

Baseline commit: 1c5241f

Generated by 🚫 dangerJS against a9c458c

@noencke noencke merged commit 1b3d1d0 into release/v2int/5.0 Jun 14, 2023
@noencke noencke deleted the 5.0-hotfix-shared-directory branch June 14, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds Issues related to distributed data structures base: release PRs targeted against a release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants