Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-44

DataTree does not use natural sort for getChildren

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: