From 2f9a694d29ebbe47f5f501fabda120053af0142b Mon Sep 17 00:00:00 2001 From: emeroad Date: Tue, 19 Jul 2016 18:16:36 +0900 Subject: [PATCH] #1819 trace format v2 - temporary bug fix --- .../server/bo/serializer/trace/v2/SpanEncoder.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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());