-
Notifications
You must be signed in to change notification settings - Fork 18
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
Possible case class serialization/deserialization bug #106
Comments
Thanks for the feedback! It is quite weird error indeed. Perhaps it is related to latest Scala version. Another guess I have is a Flink classloading issue. There can be two class loaders in your Flink JVM, where each loads own version of Scala Option type, so that Scala match operator blows up (can you have two different Scala libraries in runtime?). Some other effects of this issue were fixed in this PR: #102 (although this is different area) |
Sorry about the late reply. I have tried to downgrade to Scala However, when I use native Flink with POJOs instead of case classes I don't have any issues - replicating the case class structure 1:1 with POJO. Using POJOs with Scala is suboptimal compared to case classes so I will try to rewrite my current job back to using this API at a later stage. Thanks for your suggestions 👍 |
Thanks for reply. |
@novakov-alexey, I have not been able to make a minimal example that reproduces the above issue - the issue is that I cannot reproduce it locally but only in the Flink Cluster on a substantial load. Can we close this issue as of now and then I can reopen a new issue if I can reproduce it in a minimal example at a later time? Apologise for any inconvenience. |
@BjarkeTornager thanks for update. This is definitely interesting issue. Most likely it is classloading issue. |
I have been using your library for many months without any issues, and thanks for making this project available, however I am encountering a weird issue with a MatchError on a None that seems to be a library issues - maybe. I have tried to debug my Flink job but I cannot see that there should be any issue with the application code as this does not show up in my unit nor integration tests, it seems to only happen on substantial load on the production data. I can recreate the error both locally and in my Flink cluster when running on the production data coming from Kafka. I am using Flink's
KeyedCoProcessFunction
to do data enrichment and I am getting the following error:I am using the following library versions:
scala
->3.4.1
flink-scala-api
->1.18.1_1.1.4
flink
->1.19.0
(tried to downgrade to 1.18.1 but same things happens)Any ideas what could cause this?
The text was updated successfully, but these errors were encountered: