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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6.3
    • Fix Version/s: 8.8, main (9.0)
    • Component/s: SolrCloud, SolrJ
    • Labels:

      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

          Activity

            People

            • Assignee:
              mdrob Mike Drob
              Reporter:
              defonion def onion

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment