Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-147

Incorrect Comparator in CommitBuilder.persistStagedNodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.3
    • mk
    • None

    Description

      The comparator in .mk.model.CommitBuilder.persistStagedNodes does not fulfill the general Comparator contract (most notably: compare(X, X) == 0), which every now and then causes the Collections.sort() method to throw exceptions about unexpected comparison behavior.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: