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

Container Rehydration from a snapshot taken from detached container. #3572

Merged
merged 43 commits into from
Sep 10, 2020

Conversation

jatgarg
Copy link
Contributor

@jatgarg jatgarg commented Sep 8, 2020

Issue: #2692.
Solution:

1.) Loader's createDetachedContainer now takes either iFluidCodeDetails or snapshot. If snapshot is provided, we load from the snapshot.
2.) We keep ripping through the snapshot at container runtime layer and component runtime layer and create local component and channels from the snapshot.
3.) We support delay loading when we load from the snapshot. So when we take the summary for the container to attach, if the component/dds is loaded then we ask them for the summary otherwise we just use the previous summary from which it loaded.
4.) At dds level, we have added a loadLocal api where we load the dds from snapshot but we don't assign it services.
5.) All the components loaded from snapshot are declared as bind but not attached.

@jatgarg jatgarg added feature-request New feature or requests manual testing Problems around manual testing/validation api design-required This issue requires design thought area: runtime Runtime related issues area: loader Loader related issues area: dds Issues related to distributed data structures labels Sep 8, 2020
@jatgarg jatgarg added this to the September 2020 milestone Sep 8, 2020
@jatgarg jatgarg self-assigned this Sep 8, 2020
this.attached = true;
}

private get services() {
if (this._services === undefined) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -193,7 +202,7 @@ export class Container extends EventEmitterWithErrorHandling<IContainerEvents> i
options: any,
scope: IFluidObject,
loader: Loader,
source: IFluidCodeDetails,
source: DetachedContainerSource,
serviceFactory: IDocumentServiceFactory,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@anthony-murphy anthony-murphy left a comment

Choose a reason for hiding this comment

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

🕐

Copy link
Contributor

@anthony-murphy anthony-murphy left a comment

Choose a reason for hiding this comment

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

:shipit:

@jatgarg jatgarg merged commit dc84c3c into microsoft:main Sep 10, 2020
@jatgarg jatgarg deleted the rehydrate branch September 11, 2020 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api area: dds Issues related to distributed data structures area: loader Loader related issues area: runtime Runtime related issues design-required This issue requires design thought feature-request New feature or requests manual testing Problems around manual testing/validation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants