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

modeshape json schema is wrong for jgroups-slave index backend channel

XMLWordPrintable

    • Workaround Exists
    • Hide

      configuration workaround looks like that:
      "indexing":{

      "hibernate.search.services.jgroups.clusterName":"backendChannel",

      "hibernate.search.services.jgroups.configurationFile": "backend-jgroups.xml",

      "backend":

      { "type":"jgroups-slave", "queueJndiName":"dummy", "connectionFactoryJndiName":"dummy" }

      }

      Show
      configuration workaround looks like that: "indexing":{ "hibernate.search.services.jgroups.clusterName":"backendChannel", "hibernate.search.services.jgroups.configurationFile": "backend-jgroups.xml", "backend": { "type":"jgroups-slave", "queueJndiName":"dummy", "connectionFactoryJndiName":"dummy" } }

      see : https://raw.github.com/ModeShape/modeshape/master/modeshape-jcr/src/main/resources/org/modeshape/jcr/repository-config-schema.json

      query.indexing.backend for type jquery-slave is copied from jms-slave, and look like that:

      {
                                          "type" : "object",
                                          "description" : "The specification for sending all index updates to the maste through a JGroups channel. This is only useful for clustered repositories, where one other process in the cluster is configured with 'jgroups-master'. ",
                                          "additionalProperties" : false,
                                          "properties" : {
                                              "type" : {
                                                  "type" : "string",
                                                  "enum" : ["jgroups-slave"],
                                                  "required" : true,
                                                  "description" : "The specification of the Lucene backend for writing all updates directly to Lucene."
                                              },
                                              "connectionFactoryJndiName" : { 
                                                  "type" : "string",
                                                  "required" : true,
                                                  "description" : "Defines the name in JNDI where the JMS connection factory can be found. The value is often '/ConnectionFactory' by default in JBoss AS.",
                                              },
                                              "queueJndiName" : { 
                                                  "type" : "string",
                                                  "required" : true,
                                                  "description" : "Defines the name in JNDI where JMS queue can be found. The queue will be used to post work messages.",
                                              },
                                              "description" : {
                                                  "type" : "string",
                                                  "description" : "The optional description of this section of the configuration. It is unused by ModeShape."
                                              },
                                          }
                                      },
      
      

      while it should have properties like jgroups-master, that means:
      -channelName
      -channelConfiguration

      Also when you set those properties they are rewritten to bad hibernate properties, that cause startup error in hibernate 4.1.1.Final

      properties set in org.modeshape.jcr.query.lucene.basic.BasicLuceneConfiguration
      should be like that (starting line 222):

       setProperty("hibernate.search.default.worker.backend", type);
                  setProperty("hibernate.search.services.jgroups.clusterName", channel);
                  if (isFileOrClasspath(config)) {
                      setProperty("hibernate.search.services.jgroups.configurationFile", config);
                  } else if (isJGroupsXml(config)) {
      

              hchiorean Horia Chiorean (Inactive)
              pjakub_jira Jakub Pawłowski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: