-
Notifications
You must be signed in to change notification settings - Fork 823
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
Lambda serialization problem #469
Comments
Hi @andre-paris, I believe Kryo requires lambdas to be marked as Hazelcast.newHazelcastInstance()
.getExecutorService("exec")
.executeOnKeyOwner((Runnable & Serializable) () -> { // <--- instruct lambda factory to create serializable lambdas
// some code on Runnable.run()
}, "key"); It will use Kryo, but the the regular Java serialization. Marking it as (Java) serializable is necessary as otherwise generated lambda classes won't have all necessary methods. |
@jerrinot thanks for stepping in! I assume this resolved the issue for @andre-paris. |
tomwhite
added a commit
to tomwhite/htsjdk
that referenced
this issue
Aug 13, 2019
lbergelson
pushed a commit
to samtools/htsjdk
that referenced
this issue
Aug 13, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using Kryo for serialization inside Hazelcast.
The lambda is sent like this:
Serializer read this way:
I got this error:
I'm missing something?
Thanks
The text was updated successfully, but these errors were encountered: