You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/11/02 23:03:00 UTC

[jira] [Commented] (SOLR-14961) ZkMaintenanceUtils.clean(...) doesn't delete files with same length

    [ https://issues.apache.org/jira/browse/SOLR-14961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17225005#comment-17225005 ] 

ASF subversion and git services commented on SOLR-14961:
--------------------------------------------------------

Commit e7f0294d85dbdc3d3499245c29bc269774c574e2 in lucene-solr's branch refs/heads/master from Michael Aleythe
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=e7f0294 ]

SOLR-14961 ZkMaintenanceUtils.clean doesn't remove zk nodes with same length

fixes #2042


> 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: 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org