Solr
  1. Solr
  2. SOLR-8564

ZK data directory being set incorrectly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.4, 5.4.1
    • Fix Version/s: 5.5, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      When you start solr using the embedded zookeeper the data directory is not being set correctly.

      Instead of the zookeeper data directory being server/solr/zoo_data the data directory becomes server/solrzoo_data . This seems to happen only from 5.4 onwards.

      ~/solr-5.4.0 $ ./bin/solr start -s server/solr -c 
      ~/solr-5.4.0 $ ls server/
      README.txt	contexts	etc		lib		logs		modules		resources	scripts		solr		solr-webapp	solrzoo_data	start.jar
      

      Patch coming up

      1. SOLR-8564.patch
        0.9 kB
        Varun Thacker

        Activity

        Hide
        Varun Thacker added a comment -

        This seems to fix the issue

        Show
        Varun Thacker added a comment - This seems to fix the issue
        Hide
        Shai Erera added a comment -

        +1!

        Show
        Shai Erera added a comment - +1!
        Hide
        ASF subversion and git services added a comment -

        Commit 1725273 from Varun Thacker in branch 'dev/trunk'
        [ https://svn.apache.org/r1725273 ]

        SOLR-8564: Fix Embedded ZooKeeper to use <solrHome>/zoo_data for it's data directory

        Show
        ASF subversion and git services added a comment - Commit 1725273 from Varun Thacker in branch 'dev/trunk' [ https://svn.apache.org/r1725273 ] SOLR-8564 : Fix Embedded ZooKeeper to use <solrHome>/zoo_data for it's data directory
        Hide
        ASF subversion and git services added a comment -

        Commit 1725279 from Varun Thacker in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1725279 ]

        SOLR-8564: Fix Embedded ZooKeeper to use <solrHome>/zoo_data for it's data directory (merged trunk r1725273)

        Show
        ASF subversion and git services added a comment - Commit 1725279 from Varun Thacker in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1725279 ] SOLR-8564 : Fix Embedded ZooKeeper to use <solrHome>/zoo_data for it's data directory (merged trunk r1725273)
        Hide
        Varun Thacker added a comment -

        Thanks Shai for the review! Committed for both 5.5 and trunk

        Show
        Varun Thacker added a comment - Thanks Shai for the review! Committed for both 5.5 and trunk
        Hide
        Ishan Chattopadhyaya added a comment -

        I think it is bad enough to warrant a 5.4.2. IMHO, absence of this fix spoils Solr's out of the box experience.

        Show
        Ishan Chattopadhyaya added a comment - I think it is bad enough to warrant a 5.4.2. IMHO, absence of this fix spoils Solr's out of the box experience.
        Hide
        Varun Thacker added a comment -

        It shouldn't right? It's only the directory where the zookeeper data is present thats different.

        solr start -e cloud will work just fine

        Show
        Varun Thacker added a comment - It shouldn't right? It's only the directory where the zookeeper data is present thats different. solr start -e cloud will work just fine
        Hide
        Ishan Chattopadhyaya added a comment -

        Oh, I missed that bin/solr -c just works. True, doesn't look bad enough. Sorry for the noise.

        Show
        Ishan Chattopadhyaya added a comment - Oh, I missed that bin/solr -c just works. True, doesn't look bad enough. Sorry for the noise.

          People

          • Assignee:
            Varun Thacker
            Reporter:
            Varun Thacker
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development