hadoop-zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stu Hood (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ZOOKEEPER-44) DataTree does not use natural sort for getChildren
Date Sat, 02 Aug 2008 23:05:44 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619290#action_12619290
] 

Stu Hood commented on ZOOKEEPER-44:
-----------------------------------

This is probably a separate issue, but is anyone worried by the fact that after ~2 billion
creates, the sequence number will wrap around and break various algorithms?

> DataTree does not use natural sort for getChildren
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-44
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-44
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.0.0
>            Reporter: Stu Hood
>            Assignee: Jakob Homan
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: seqfile.diff, seqfile2.diff
>
>
> DataTree.getChildren() performs Collection.sort() on the list of children before returning
it, but Java's default comparator for Strings will sort 'lock-20' before 'lock-3' for instance.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message