Solr
  1. Solr
  2. SOLR-6072

The 'deletereplica' API should remove the data and instance directory default

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.8
    • Fix Version/s: 4.10, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      The 'deletereplica' collection API should clean up the data and instance directory automatically. Not doing that is a bug even if it's a back-compat break because if we don't do that then there is no way to free up the disk space except manual intervention.

      1. SOLR-6072.patch
        3 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Test and fix attached. This is ready.

        Show
        Shalin Shekhar Mangar added a comment - Test and fix attached. This is ready.
        Hide
        ASF subversion and git services added a comment -

        Commit 1605993 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1605993 ]

        SOLR-6072: The 'deletereplica' API should remove the data and instance directory by default

        Show
        ASF subversion and git services added a comment - Commit 1605993 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1605993 ] SOLR-6072 : The 'deletereplica' API should remove the data and instance directory by default
        Hide
        ASF subversion and git services added a comment -

        Commit 1605994 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1605994 ]

        SOLR-6072: The 'deletereplica' API should remove the data and instance directory by default

        Show
        ASF subversion and git services added a comment - Commit 1605994 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1605994 ] SOLR-6072 : The 'deletereplica' API should remove the data and instance directory by default
        Hide
        Craig MacGregor added a comment -

        This definitely broke backwards compatibility for my limited use case... I was using DELETEREPLICA as a way to keep a backup copy of a recent core, following creation of a new core in the collection, but now it deletes it... there's no UNLOADREPLICA or "unloadOnly" param do the same thing, which is the behavior I was expecting

        Show
        Craig MacGregor added a comment - This definitely broke backwards compatibility for my limited use case... I was using DELETEREPLICA as a way to keep a backup copy of a recent core, following creation of a new core in the collection, but now it deletes it... there's no UNLOADREPLICA or "unloadOnly" param do the same thing, which is the behavior I was expecting

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Shalin Shekhar Mangar
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development