-
Bug
-
Resolution: Done
-
Blocker
-
3.1.3.Final
-
None
I'm having a problem with Modeshape clustering when Infinispan eviction is enabled (and, probably, maxEntries is set lower than the number of objects in the cluster).
I've made a MODE sample app [1] using Modeshape 3.1.3, Infinispan 5.2.1, and Jgroups 3.2.6, with the modeshape config my-repository-config.json [2] and infinispan config infinispan-configuration.xml [3]. Directions for compiling and running the nodes is in the project README.
When run with eviction disabled, replication/modeshape/etc works just fine. When eviction /is/ enabled, any node trying to join the cluster fails to initialize properly.
Here are some DEBUG-level logs when run with eviction enabled and disabled:
https://gist.github.com/cbeer/69b04052bf9521d42722
When eviction is enabled, the joining node's log has this NPE:
07:31:05,685 ERROR Node types were read from the system content, and appear to be inconsistent or invalid: repo
java.lang.NullPointerException
at org.modeshape.jcr.SystemContent.first(SystemContent.java:638)
at org.modeshape.jcr.SystemContent.first(SystemContent.java:632)
at org.modeshape.jcr.SystemContent.readAllNamespaces(SystemContent.java:651)
at org.modeshape.jcr.SystemNamespaceRegistry.refreshFromSystem(SystemNamespaceRegistry.java:83)
at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1099)
at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:961)
at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:360)
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:617)
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:586)
at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:155)
at org.modeshape.example.clustering.ModeShapeExample.main(ModeShapeExample.java:77)
[1] https://github.com/cbeer/modeshape-examples/blob/clustering-tests/modeshape-clustering-example
[2] https://github.com/cbeer/modeshape-examples/blob/clustering-tests/modeshape-clustering-example/src/main/resources/my-repository-config.json
[3] https://github.com/cbeer/modeshape-examples/blob/clustering-tests/modeshape-clustering-example/src/main/resources/infinispan-configuration.xml
- incorporates
-
MODE-1875 ModeShape should use partial deltas when transferring data in a cluster
- Closed
- is blocked by
-
ISPN-2974 DeltaAware based fine-grained replication corrupts cache data, if eviction is enabled
- Closed
- is incorporated by
-
MODE-1754 ModeShape 3.1 cannot use Infinispan 5.2.0.CR1 in a clustered environment when eviction is enabled.
- Closed