ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-44

DataTree does not use natural sort for getChildren

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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.

      1. seqfile.diff
        5 kB
        Jakob Homan
      2. seqfile2.diff
        5 kB
        Jakob Homan

        Activity

        Stu Hood created issue -
        Patrick Hunt made changes -
        Field Original Value New Value
        Assignee Benjamin Reed [ breed ]
        Patrick Hunt made changes -
        Fix Version/s 3.0.0 [ 12313216 ]
        Jakob Homan made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Jakob Homan made changes -
        Attachment seqfile.diff [ 12387376 ]
        Mahadev konar made changes -
        Assignee Benjamin Reed [ breed ] Jakob Homan [ jghoman ]
        Benjamin Reed made changes -
        Hadoop Flags [Reviewed]
        Jakob Homan made changes -
        Attachment seqfile2.diff [ 12387378 ]
        Mahadev konar made changes -
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Patrick Hunt made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jakob Homan
            Reporter:
            Stu Hood
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development