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

Fix collision in serviceTypeCache keys #1040

Merged
merged 3 commits into from
Jun 12, 2023

Conversation

swankjesse
Copy link
Collaborator

We were selecting cache keys at build-time, which resulted in multiple flows using the same serializer instances, despite having different runtime types.

This changes key construction to happen at runtime instead.

Closes: #1039

We were selecting cache keys at build-time, which resulted
in multiple flows using the same serializer instances, despite
having different runtime types.

This changes key construction to happen at runtime instead.

Closes: #1039
@@ -241,4 +244,28 @@ internal class FlowTest {
assertEquals(setOf(), endpointA.serviceNames)
assertEquals(setOf(), endpointB.serviceNames)
}

/** https://github.com/cashapp/zipline/issues/1039 */
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This test crashed on the old code attempting to use an Int serializer on a string.

@swankjesse swankjesse merged commit a76a463 into trunk Jun 12, 2023
@swankjesse swankjesse deleted the jwilson.0611.dynamic_serial_name branch June 12, 2023 16:57
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.

ServiceTypeCache keys not distinct
3 participants