Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1089

Order.shuffle implementation is too fragile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2-incubating
    • 3.1.1-incubating
    • process
    • None

    Description

      __((1..100).toList()).order(local).by(shuffle)
      

      Try that query often enough and it will fail. You can increase the likeliness of a failure by increasing the size of the list. An explanation of why that happens is given here:

      http://stackoverflow.com/questions/19325256/java-lang-illegalargumentexception-comparison-method-violates-its-general-contr

      Attachments

        Activity

          People

            okram Marko A. Rodriguez
            dkuppitz Daniel Kuppitz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: