Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-26171

Delete resources: deleting all causes error "Comparison method violates its general contract!"

XMLWordPrintable

      steps:

      1. EXEC: create an app based on the nodejs-mongo-persistent template, have project imported and a server adapter for it
      2. EXEC: restart server adapter several times in "Debug" then in "Run" then in "Debug" then in "Run" etc
      3. ASSERT: have many deployments, replication controllers, deployment configs etc.
      4. EXEC: select the project and pick "Delete Resources..." in the context menu
      5. ASSERT: delete resources wizard shows up
      6. EXEC: select all resources & finish the wizard

      Result:

      in the Eclipse log you'll find the following

      java.lang.IllegalArgumentException: Comparison method violates its general contract!
      	at java.base/java.util.TimSort.mergeLo(TimSort.java:777)
      	at java.base/java.util.TimSort.mergeAt(TimSort.java:514)
      	at java.base/java.util.TimSort.mergeForceCollapse(TimSort.java:457)
      	at java.base/java.util.TimSort.sort(TimSort.java:254)
      	at java.base/java.util.Arrays.sort(Arrays.java:1514)
      	at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:511)
      	at org.jboss.tools.openshift.internal.core.job.DeleteResourcesJob.doRun(DeleteResourcesJob.java:57)
      	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:37)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
      

              adietish@redhat.com André Dietisheim
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: