diff --git a/commons-server/src/main/java/com/navercorp/pinpoint/common/server/bo/serializer/trace/v2/SpanEncoder.java b/commons-server/src/main/java/com/navercorp/pinpoint/common/server/bo/serializer/trace/v2/SpanEncoder.java index 0fd907964392..235e1a460f7c 100644 --- a/commons-server/src/main/java/com/navercorp/pinpoint/common/server/bo/serializer/trace/v2/SpanEncoder.java +++ b/commons-server/src/main/java/com/navercorp/pinpoint/common/server/bo/serializer/trace/v2/SpanEncoder.java @@ -32,12 +32,14 @@ public int compare(SpanEventBo o1, SpanEventBo o2) { final int asyncId2 = o2.getAsyncId(); final int asyncIdCompare = Integer.compare(asyncId1, asyncId2); if (asyncIdCompare != 0) { - if (asyncId1 == -1) { - return -1; - } - if (asyncId2 == -1) { - return -1; - } +// bug Comparison method violates its general contract! +// TODO temporary fix +// if (asyncId1 == -1) { +// return -1; +// } +// if (asyncId2 == -1) { +// return -1; +// } return asyncIdCompare; } return Integer.compare(o1.getAsyncSequence(), o2.getAsyncSequence());