Anyone using vert.x with clustered session store and infinispan and 'Zero Capacity Nodes'

216 views
Skip to first unread message

Szymon G

unread,
Nov 18, 2021, 9:25:49 AM11/18/21
to vert.x
Hi, 

This is my 1st post - so welcome everyone.

I am trying to use clustered vertx with session store (with Infinispan).
Due to our deployment the cluster is quite big and I was thinking of using 'Zero Capacity Nodes' - to make sure my data is 'nearby' (basically make the remote cluster member 'Zero Capacity Nodes'.
Is this a good idea?
Is this even possible?

When I try this I have a strange exception:

2021-11-18T14:52:26,270 <vert.x-eventloop-thread-0> [ERROR ] [io.vertx.core.impl.VertxImpl] Failed to initialize clustered Vert.x
org.infinispan.commons.marshall.MarshallingException: No marshaller registered for object of Java type io.vertx.ext.cluster.infinispan.impl.SubsCacheHelper$EventFilter : io.vertx.ext.cluster.infinispan.impl.SubsCacheHelper$EventFilter@7c28245a

Anyone tried this?

Here is an example project (to be run in idea):

kind regards,
Szymon 

Thomas SEGISMONT

unread,
Nov 18, 2021, 10:45:47 AM11/18/21
to ve...@googlegroups.com
Hi,

It's not clear to me what you want to achieve. 

The Infinispan Web Session Store uses the Infinispan Client. It's not meant to be used with a clustered Vert.x.

There is an example for usage on the howtos website: https://how-to.vertx.io/web-session-infinispan-howto/

Or do you really need Vert.x clustering?

Regards,
Thomas

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/285d5f7d-2e16-4f23-b7fc-690bea69b618n%40googlegroups.com.

Szymon G

unread,
Nov 18, 2021, 2:08:35 PM11/18/21
to vert.x
Hi Thomas, 

Many thanks for reply.

I use clustered vert.x as I have an 'event bus' cluster.
And it seems to work in 'embedded' mode - only fails when one one the joining nodes is configured to be 'Zero Capacity Node' - see my example project - hope this will make it clear what is happening (but it does not have eventbus - not required to reproduce the problem).

I don't know Infinispan that well, but 'Zero Capacity Node' seems like a 'Lite member' in hazelcast - this should give me flexibility to have cluster (event bus) and not store data (on nodes in remote datacenter).
Where have you found information that Infinispan Web Session Store uses the Infinispan Client?

Kind regards,
Szymon

Szymon G

unread,
Nov 18, 2021, 2:10:14 PM11/18/21
to vert.x
this is a bit more of the error logs:

2021-11-18T14:52:26,267 <vert.x-worker-thread-0> [WARN ] [org.infinispan.PERSISTENCE] ISPN000559: Cannot marshall 'class org.infinispan.marshall.protostream.impl.MarshallableUserObject' java.lang.IllegalArgumentException: No marshaller registered for object of Java type io.vertx.ext.cluster.infinispan.impl.SubsCacheHelper$EventFilter : io.vertx.ext.cluster.infinispan.impl.SubsCacheHelper$EventFilter@7c28245a at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:512) ~[protostream-4.4.1.Final.jar:4.4.1.Final] 2021-11-18T14:52:26,270 <vert.x-eventloop-thread-0> [ERROR ] [io.vertx.core.impl.VertxImpl] Failed to initialize clustered Vert.x org.infinispan.commons.marshall.MarshallingException: No marshaller registered for object of Java type io.vertx.ext.cluster.infinispan.impl.SubsCacheHelper$EventFilter : io.vertx.ext.cluster.infinispan.impl.SubsCacheHelper$EventFilter@7c28245a at org.infinispan.marshall.protostream.impl.AbstractInternalProtoStreamMarshaller.objectToByteBuffer(AbstractInternalProtoStreamMarshaller.java:81) ~[infinispan-core-12.1.7.Final.jar:12.1.7.Final] at org.infinispan.marshall.protostream.impl.AbstractInternalProtoStreamMarshaller.objectToByteBuffer(AbstractInternalProtoStreamMarshaller.java:87) ~[infinispan-core-12.1.7.Final.jar:12.1.7.Final] at org.infinispan.marshall.core.GlobalMarshaller.writeRawUnknown(GlobalMarshaller.java:637) ~[infinispan-core-12.1.7.Final.jar:12.1.7.Final]

Szymon G

unread,
Nov 18, 2021, 2:12:15 PM11/18/21
to vert.x
and OK - I will reply to myself -  title of this: https://how-to.vertx.io/web-session-infinispan-howto/ is "Web Session Storage with Infinispan Client" :)

Szymon G

unread,
Nov 19, 2021, 2:15:24 AM11/19/21
to vert.x
I will close this topic - and start a new thread - as I managed to isolate the problem a bit more.
Reply all
Reply to author
Forward
0 new messages