Solr
  1. Solr
  2. SOLR-5956

SnapShooter is using getRawInstanceDir, which is sometimes not a valid directory

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9
    • Labels:
      None
    • Environment:

      SolrCloud

      Description

      Ran into an issue where the getRawInstanceDir method on CoreDescriptor returns an invalid directory on the server. Need to track down where this bad value comes from and fix it. I suspect this has to do with me using symlinks
      e.g.
      I have server with solr.solr.home set to
      /home/ec2-user/lucene-solr/solr/cloud87/solr, which in reality is:
      /vol0/cloud87/solr as /home/ec2-user/lucene-solr/solr/cloud87 is a symlink to /vol0/cloud87
      getRawInstanceDir was returning /vol0/cloud87/demo_shard1_replica1 which is missing the /solr part of the directory path, should be:
      /vol0/cloud87/solr/demo_shard1_replica1

      1. SOLR-5956.patch
        0.7 kB
        Timothy Potter

        Activity

        Hide
        Timothy Potter added a comment -

        Quick patch to use getInstanceDir instead of getRawInstanceDir. Be better to track down why getRawInstanceDir is returning the wrong value when using symlinks but this fixes the issue I have now. More later...

        Show
        Timothy Potter added a comment - Quick patch to use getInstanceDir instead of getRawInstanceDir. Be better to track down why getRawInstanceDir is returning the wrong value when using symlinks but this fixes the issue I have now. More later...
        Hide
        ASF subversion and git services added a comment -

        Commit 1602953 from Timothy Potter in branch 'dev/trunk'
        [ https://svn.apache.org/r1602953 ]

        SOLR-5956: Use getInstanceDir instead of getRawInstanceDir as that was causing issues when trying to create a backup of an index on Linux when solr.solr.home is a symbolic link.

        Show
        ASF subversion and git services added a comment - Commit 1602953 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1602953 ] SOLR-5956 : Use getInstanceDir instead of getRawInstanceDir as that was causing issues when trying to create a backup of an index on Linux when solr.solr.home is a symbolic link.

          People

          • Assignee:
            Timothy Potter
            Reporter:
            Timothy Potter
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development