killxdcj opened a new issue #5376:
URL: https://github.com/apache/incubator-doris/issues/5376


   If the difference between the two times exceeds Integer.MAX_VALUE, the 
compare's return value will overflow and the flow exception may be triggered 
when sorting profile.
   
   2021-02-08 22:30:33,594 WARN (doris-mysql-nio-pool-56|3259) 
[StmtExecutor.execute():326] execute Exception
   java.lang.IllegalArgumentException: Comparison method violates its general 
contract!
           at java.util.TimSort.mergeLo(TimSort.java:781) ~[?:?]
           at java.util.TimSort.mergeAt(TimSort.java:518) ~[?:?]
           at java.util.TimSort.mergeCollapse(TimSort.java:448) ~[?:?]
           at java.util.TimSort.sort(TimSort.java:245) ~[?:?]
           at java.util.Arrays.sort(Arrays.java:1515) ~[?:?]
           at java.util.ArrayList.sort(ArrayList.java:1749) ~[?:?]
           at java.util.Collections.sort(Collections.java:177) ~[?:?]
           at 
org.apache.doris.common.util.RuntimeProfile.sortChildren(RuntimeProfile.java:366)
 ~[palo-fe.jar:?]
           at org.apache.doris.qe.Coordinator.endProfile(Coordinator.java:1296) 
~[palo-fe.jar:?]
           at 
org.apache.doris.qe.StmtExecutor.initProfile(StmtExecutor.java:170) 
~[palo-fe.jar:?]
           at 
org.apache.doris.qe.StmtExecutor.writeProfile(StmtExecutor.java:359) 
~[palo-fe.jar:?]
           at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:264) 
~[palo-fe.jar:?]
           at 
org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:193) 
~[palo-fe.jar:?]
           at 
org.apache.doris.qe.ConnectProcessor.dispatch(ConnectProcessor.java:325) 
~[palo-fe.jar:?]
           at 
org.apache.doris.qe.ConnectProcessor.processOnce(ConnectProcessor.java:510) 
~[palo-fe.jar:?]
           at 
org.apache.doris.mysql.nio.ReadListener.lambda$handleEvent$0(ReadListener.java:50)
 ~[palo-fe.jar:?]
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
[?:?]
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
[?:?]
           at java.lang.Thread.run(Thread.java:834) [?:?]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to