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

HTTP-121 Ensure SerializationSchema is used in thread-safe way #127

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

grzegorz8
Copy link
Member

@grzegorz8 grzegorz8 commented Oct 10, 2024

Description

Async lookup queries may return incorrect results because org.apache.flink.formats.json.JsonRowDataSerializationSchema is not thread-safe. In this PR I introduce a temporary fix, which ensures that SerializationSchema is used in thread-safe way. In long-term we should refactor the code so that serialization can be safely run in parallel.

Resolves HTTP-121.

PR Checklist

@grzegorz8 grzegorz8 marked this pull request as ready for review October 10, 2024 09:36
Copy link
Contributor

File Coverage [94.67%] 🍏
SynchronizedSerializationSchema.java 100% 🍏
GenericJsonQueryCreatorFactory.java 92.16% 🍏
Total Project Coverage 94.42% 🍏

Copy link
Contributor

File Coverage [94.67%] 🍏
SynchronizedSerializationSchema.java 100% 🍏
GenericJsonQueryCreatorFactory.java 92.16% 🍏
Total Project Coverage 94.42% 🍏

Copy link
Contributor

File Coverage [95.51%] 🍏
SynchronizedSerializationSchema.java 100% 🍏
GenericJsonQueryCreatorFactory.java 93.85% 🍏
Total Project Coverage 94.43% 🍏

Copy link
Contributor

File Coverage [95.51%] 🍏
SynchronizedSerializationSchema.java 100% 🍏
GenericJsonQueryCreatorFactory.java 93.85% 🍏
Total Project Coverage 94.43% 🍏

Copy link
Contributor

@MarekMaj MarekMaj left a comment

Choose a reason for hiding this comment

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

Looks great!

@grzegorz8 grzegorz8 force-pushed the fix/121-serialization-schema-thread-safety branch from d0a4ae7 to dc57ffe Compare October 10, 2024 11:37
@grzegorz8 grzegorz8 force-pushed the fix/121-serialization-schema-thread-safety branch from dc57ffe to 67c618b Compare October 17, 2024 14:26
Copy link
Contributor

Overall Project 93.65% 🍏
Files changed 100% 🍏

File Coverage
SynchronizedSerializationSchema.java 100% 🍏
GenericJsonQueryCreatorFactory.java 93.85% 🍏

@grzegorz8 grzegorz8 merged commit e14ae6a into main Oct 17, 2024
3 checks passed
@grzegorz8 grzegorz8 deleted the fix/121-serialization-schema-thread-safety branch October 18, 2024 13:50
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.

3 participants