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

Rearrange serializer caching to fix issue #2555 #2794

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

benclifford
Copy link
Collaborator

@benclifford benclifford commented Jul 4, 2023

Prior to this PR:
parsl.serialize.facade monkeypatches some serializer objects to create new serializers, but does not generate new identifiers for those new serializers, so two serializers exist in the serializer globals with the same identifier.

This patching is done to make some new serializers that have caching behaviour.

This leads to issue #2555, where data from one serializer is deserialized using one of the these dynamically defined serializers, incorrectly.

This PR removes that monkeypatching and moves caching behaviour into two new serializers explicitly defined for the type of objects that should be cached.

This adds two new serializer identifiers, which means there is an incompatible wire protocol change: older versions of parsl will not be able to deserialize callables serialised after this PR.

This PR adds a regression test for issue #2555 that fails before this PR.

Fixes issue #2555

Type of change

  • Bug fix
  • Breaking change to wire protocol

Prior to this PR:
parsl.serialize.facade monkeypatches some serializer objects to create
new serializers, but does not generate new identifiers for those new
serializers, so two serializers exist in the serializer globals with
the same identifier.

This patching is done to make some new serializers that have caching
behaviour.

This leads to issue #2555, where data from one serializer is deserialized
using one of the these dynamically defined serializers, incorrectly.

This PR removes that monkeypatching and moves caching behaviour into
two new serializers explicitly defined for the type of objects that should
be cached.

This adds two new serializer identifiers, which means there is an
incompatible wire protocol change: older versions of parsl will not be able
to deserialize callables serialised after this PR.

This PR adds a regression test for issue #2555 that fails before this PR.

Fixes issue #2555
@khk-globus khk-globus force-pushed the benc-serialization-no-monkeypatch branch from 1cc0c5b to 6c5ade9 Compare July 5, 2023 14:40
@benclifford benclifford added this pull request to the merge queue Jul 6, 2023
@benclifford benclifford removed this pull request from the merge queue due to the queue being cleared Jul 6, 2023
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