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

Clear ConcurrentMap before loading archive data #1248

Merged

Conversation

ScottMcMichael
Copy link
Contributor

Adding the clear() call causes the contents of the ConcurrentMap to be replaced by the archive data, without it the archive data is appended to the current object contents.

@varunagrawal
Copy link
Collaborator

@ScottMcMichael thanks for the PR! Can you please add a small unit test to ensure we can catch this in the future? You'll be able to find other tests for serialization in the repo.

Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @ScottMcMichael

@varunagrawal varunagrawal merged commit 0af17f4 into borglab:develop Jul 18, 2022
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.

2 participants