[FLINK-38054] flink-connector-elasticsearch8 use correct ClassLoader in OperationSerializer#136
Conversation
…in OperationSerializer
|
Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html) |
|
Unfortunately this PR only fixes the class discovery error. However, the Operation itself still fails to deserialize due a NullPointerException from Jackson: I'm trying to look deeper, but I'm new to this serialization stuff, so any hints or guidance is appreciated. |
|
I added a custom serializer for |
|
I have now verified that with this fix our Flink job was able to successfully restart from snapshot after an error. |
|
I also have same problem. Is this going to be merged? |
|
would be great if we have a test for this first in order to be sure it will not be broken again |
|
@mayorandrew Did you find a work around because this is not merged? |
Fixes FLINK-38054
I am not sure this is the best solution in this case, but it mitigates the original problem of Operation classes being invisible during deserialization.
The PR branch is opened from last main branch commit for version 3.1.0, so that it is compatible with Flink version 1.20.