Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10826

Impossible to run 2 instances of XWiki on same Tomcat instance because of Solr

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.1
    • Fix Version/s: 6.2-milestone-2
    • Component/s: Search - Solr
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When I tried to run 2 instances of XWiki on the same Tomcat instance, I faced a problem with instanciation of Solr which don't want to be instantiated a second time.

      Looking at the problem, it seems that the problem comes from the method determineHomeDirectory() from EmbeddedSolrInstance.java file. When the first XWiki instance is start, this method is called a first time but System.getProperty(SOLR_HOME_SYSTEM_PROPERTY) returns nothing. The returned value is the default one returned by getDefaultHomeDirectory(). However, when the second instance of XWiki tries to start, System.getProperty(SOLR_HOME_SYSTEM_PROPERTY) returns the value of the first Solr instance already set up. This stop the second XWiki instance to run.

      This is the Tomcat log.
      https://ezcrypt.it/Wr9n#WoUVeXBm8bWO56m49qDMsZsB

        Attachments

          Activity

            People

            • Assignee:
              enygma Eduard Moraru
              Reporter:
              jsimard Jean SIMARD
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: