Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1836

Modeshape clustering problem with ISPN eviction enabled

    Details

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hchiorean Horia Chiorean
                  Reporter:
                  cbeer Chris Beer
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: