FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

SummarizerNode shouldn't have logic mapping to children nodes from IDs

Open arinwt opened this issue 5 years ago • 2 comments

The logic for traversing from a parent node to a child node in the tree of SummarizerNodes (and their corresponding nodes: ContainerRuntime, Datastore, DDS) should not be replicated in SummarizerNode code.

Anywhere that the SummarizerNode children map's keys are used, is an area to fix. We do this during refreshLatestSummaryFromSnapshot to map from downloaded snapshot tree to child SummarizerNode, but really that logic should exist outside of SummarizerNode- probably more like how the tree of summarize calls work, but with refreshLatestSummaryFromSnapshot.

Also see loading from local snapshot, and usages of parseSummaryTreeForSubtrees/parseSummaryForSubtrees for other examples to fix. If we ever plan to bring back differential summaries (_baseSummary handle + _outstandingOps blob), then we still need to make sure we pass childrenPathPart in while fixing these issues.

@agarwal-navin is adding a new usage of ID to map for GC as well.

arinwt avatar Jun 23 '21 12:06 arinwt

This issue has been automatically marked as stale because it has had no activity for 180 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!

ghost avatar Feb 07 '22 03:02 ghost

Tracked by AB#434

agarwal-navin avatar May 24 '22 19:05 agarwal-navin