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

Make Protostream the default marshaller for user types #7302

Closed
wants to merge 7 commits into from

Conversation

ryanemerson
Copy link
Contributor

@ryanemerson ryanemerson commented Sep 12, 2019

https://issues.jboss.org/browse/ISPN-10591

Builds upon the commits in #7264, which should be merged first.

@infinispan infinispan deleted a comment Sep 18, 2019
@ghost
Copy link

ghost commented Sep 18, 2019

@anistor
Copy link
Member

anistor commented Sep 23, 2019

Protostream 4.3.0.Alpha12 is now released! ProtoStreamTypeIds.WRAPPED_MESSAGE can now be an alias of the newly introduced WrappedMessage.PROTOBUF_TYPE_ID constant to avoid a magic number :)

@ryanemerson
Copy link
Contributor Author

On hold as I will remove the notion of the user marshaller in this PR.

@anistor
Copy link
Member

anistor commented Sep 23, 2019

On hold as I will remove the notion of the user marshaller in this PR.
Does that mean I won't be able to use java serialization or jboss marshalling to my heart's desire? I hope I'm not force to use protobuf only.

@ryanemerson
Copy link
Contributor Author

@anistor See the discussion on #marshalling and this week's meeting for more details. But in summary, the idea is that if you want those things for embedded mode then you should use AdvancedCache::withEncoding

@anistor
Copy link
Member

anistor commented Sep 24, 2019

@anistor See the discussion on #marshalling and this week's meeting for more details. But in summary, the idea is that if you want those things for embedded mode then you should use AdvancedCache::withEncoding

My concern is about actually storing in cache java objects as objects, without using any protobuf at all (for reasons related to hibernate search indexing). Does withEncoding offer that or just sugar coats a byte[]? I'm not familiar with the latest status in this area.

@ryanemerson
Copy link
Contributor Author

@anistor The ability to configure a user marshaller is in place again, so this PR is good to go from my POV.

@ryanemerson ryanemerson added this to the 10.0.0.CR3 milestone Sep 25, 2019
@ryanemerson ryanemerson force-pushed the ISPN-10591 branch 4 times, most recently from ceb0dc3 to 5506702 Compare September 27, 2019 10:50
@anistor
Copy link
Member

anistor commented Oct 1, 2019

I've added some comments, that are very easy fixes. I'm happy with it and it LVVVGTM :)

@ryanemerson
Copy link
Contributor Author

Updated, thanks for the review @anistor

@anistor
Copy link
Member

anistor commented Oct 1, 2019

LGTM. Let's wait for another round of CI.

@ryanemerson
Copy link
Contributor Author

@anistor CI is good 🙂

@anistor
Copy link
Member

anistor commented Oct 2, 2019

merged. thanks @ryanemerson !

@anistor anistor closed this Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants