[
https://issues.apache.org/jira/browse/SOLR-14961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Drob reassigned SOLR-14961:
--------------------------------
Assignee: Mike Drob
> 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
> Time Spent: 20m
> 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: [email protected]
For additional commands, e-mail: [email protected]