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

[ENG-3989] Ensure non-serialized states are present in StateManagerDisk #4230

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Oct 23, 2024

If a non-root state was serialized, but its substates were not, then these would not be populated when reloading the pickled state, because only substates from the root were being populated with fresh versions.

Now, capture the substates from all fresh states and apply them to the deserialized state for each substate to ensure that the entire state tree has all substates instantiated after deserializing, even substates that were never serialized originally.

Fixes #4227

If a non-root state was serialized, but its substates were not, then these
would not be populated when reloading the pickled state, because only substates
from the root were being populated with fresh versions.

Now, capture the substates from all fresh states and apply them to the
deserialized state for each substate to ensure that the entire state tree has
all substates instantiated after deserializing, even substates that were never
serialized originally.
@masenf masenf merged commit 24cef3d into main Oct 23, 2024
31 checks passed
masenf added a commit that referenced this pull request Oct 23, 2024
…sk (#4230)

If a non-root state was serialized, but its substates were not, then these
would not be populated when reloading the pickled state, because only substates
from the root were being populated with fresh versions.

Now, capture the substates from all fresh states and apply them to the
deserialized state for each substate to ensure that the entire state tree has
all substates instantiated after deserializing, even substates that were never
serialized originally.
@masenf masenf deleted the masenf/disk-state-manager-deserialize branch December 12, 2024 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants