[ 
https://issues.apache.org/jira/browse/SOLR-14961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Drob updated SOLR-14961:
-----------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I committed this and back ported to 8.x as well. Thanks for the patch, 
[~defonion]

> ZkMaintenanceUtils.clean(...) doesn't delete files with same length
> -------------------------------------------------------------------
>
>                 Key: SOLR-14961
>                 URL: https://issues.apache.org/jira/browse/SOLR-14961
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud, SolrJ
>    Affects Versions: 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6.3
>            Reporter: def onion
>            Assignee: Mike Drob
>            Priority: Major
>              Labels: newbie
>             Fix For: master (9.0), 8.8
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When trying to delete zookeeper path and all of its subnodes via 
> [ZkMaintenanceUtils.clean(SolrZkClient zkClient, String path, 
> Predicate<String> 
> filter)|[https://github.com/apache/lucene-solr/blob/052efd62aec3262744049a9b6002348df1d6e1c4/solr/solrj/src/java/org/apache/solr/common/cloud/ZkMaintenanceUtils.java#L263]]
>  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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to