Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9441

Solr collection backup on HDFS can only be manipulated by the Solr process owner

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3, master (7.0)
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      When we backup Solr collection using HDFS backup repository, the backup folder (and the files) are created with permissions 755 (i.e. only solr process owner can delete/move the backup folder). This is inconvenient from user perspective since the backup is essentially a full-copy of the Solr collection and hence manipulating it doesn't affect the Solr collection state in any way.

      We should provide an option by which we can enable other users to manipulate the backup folders.

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user hgadre opened a pull request:

          https://github.com/apache/lucene-solr/pull/71

          SOLR-9441 Support configuring umask for HDFS backup repository.

          Please refer to following document for details https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/hgadre/lucene-solr SOLR-9441_fix

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/lucene-solr/pull/71.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #71


          commit 5a3f91497dfcc97e89471f2b7b2e9ac237a1f6e4
          Author: Hrishikesh Gadre <hgadre@cloudera.com>
          Date: 2016-08-24T23:51:27Z

          SOLR-9441 Support configuring umask for HDFS backup repository.


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user hgadre opened a pull request: https://github.com/apache/lucene-solr/pull/71 SOLR-9441 Support configuring umask for HDFS backup repository. Please refer to following document for details https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html You can merge this pull request into a Git repository by running: $ git pull https://github.com/hgadre/lucene-solr SOLR-9441 _fix Alternatively you can review and apply these changes as the patch at: https://github.com/apache/lucene-solr/pull/71.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #71 commit 5a3f91497dfcc97e89471f2b7b2e9ac237a1f6e4 Author: Hrishikesh Gadre <hgadre@cloudera.com> Date: 2016-08-24T23:51:27Z SOLR-9441 Support configuring umask for HDFS backup repository.
          Hide
          hgadre Hrishikesh Gadre added a comment -

          Varun Thacker Mark Miller Could you please take a look?

          Show
          hgadre Hrishikesh Gadre added a comment - Varun Thacker Mark Miller Could you please take a look?
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user hgadre commented on the issue:

          https://github.com/apache/lucene-solr/pull/71

          @vthacker can you please take a look?

          Show
          githubbot ASF GitHub Bot added a comment - Github user hgadre commented on the issue: https://github.com/apache/lucene-solr/pull/71 @vthacker can you please take a look?
          Hide
          varunthacker Varun Thacker added a comment -

          Hi Hrishikesh,

          I was out on vacation last week so sorry for the delay. I'll have a look at it this week. Thanks for driving the issue!

          Show
          varunthacker Varun Thacker added a comment - Hi Hrishikesh, I was out on vacation last week so sorry for the delay. I'll have a look at it this week. Thanks for driving the issue!
          Hide
          hgadre Hrishikesh Gadre added a comment -

          Varun Thacker Did you get a chance to review the patch?

          Show
          hgadre Hrishikesh Gadre added a comment - Varun Thacker Did you get a chance to review the patch?
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 27ba8e2e82df6b901bbc5adaa3490d5f002fd76f in lucene-solr's branch refs/heads/master from markrmiller
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=27ba8e2 ]

          SOLR-9441: Solr collection backup on HDFS can only be manipulated by the Solr process owner.

          This closes #71.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 27ba8e2e82df6b901bbc5adaa3490d5f002fd76f in lucene-solr's branch refs/heads/master from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=27ba8e2 ] SOLR-9441 : Solr collection backup on HDFS can only be manipulated by the Solr process owner. This closes #71.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit d961253c7c031d1a9b8227cc4949dc7211a3f98f in lucene-solr's branch refs/heads/branch_6x from markrmiller
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d961253 ]

          SOLR-9441: Solr collection backup on HDFS can only be manipulated by the Solr process owner.

          This closes #71.

          Show
          jira-bot ASF subversion and git services added a comment - Commit d961253c7c031d1a9b8227cc4949dc7211a3f98f in lucene-solr's branch refs/heads/branch_6x from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d961253 ] SOLR-9441 : Solr collection backup on HDFS can only be manipulated by the Solr process owner. This closes #71.
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/lucene-solr/pull/71

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/lucene-solr/pull/71
          Hide
          markrmiller@gmail.com Mark Miller added a comment -

          Thanks Hrishikesh!

          Show
          markrmiller@gmail.com Mark Miller added a comment - Thanks Hrishikesh!
          Hide
          shalinmangar Shalin Shekhar Mangar added a comment -

          Closing after 6.3.0 release.

          Show
          shalinmangar Shalin Shekhar Mangar added a comment - Closing after 6.3.0 release.

            People

            • Assignee:
              markrmiller@gmail.com Mark Miller
              Reporter:
              hgadre Hrishikesh Gadre
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development