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

ZkMaintenanceUtils.clean(...) doesn't delete files with same length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6.3
    • 8.8, 9.0
    • SolrCloud, SolrJ

    Description

      When trying to delete zookeeper path and all of its subnodes via ZkMaintenanceUtils.clean(SolrZkClient zkClient, String path, Predicate<String> filter) the Operation fails silently, when a ZKNode contains more than 1 file with the same file name length.

      This is because of the String.length() comparator used in the Treeset for storing the paths. Paths with the same length are seen as equal and are not added to the set.

      Attachments

        Issue Links

          Activity

            People

              mdrob Mike Drob
              defonion def onion
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m