|
|
|
|
|
by layer8
480 days ago
|
|
Another way to get infinite loops is using a Comparator or Comparable implementation that doesn’t implement a consistent total order: https://stackoverflow.com/questions/62994606/concurrentskips...
(This is unrelated to concurrency.) Whether it occurs or not can depend on the specific data being processed, and the order in which it is being processed. So this can happen in production after seemingly working fine for a long time. |
|
I haven't personally encountered a buggy comparator without a total order.