未验证 提交 e3fbb3f7 编写于 作者: CWW666's avatar CWW666 提交者: GitHub

Fix some influxdb plugin bug (#6139)

上级 afc44d4a
......@@ -53,6 +53,7 @@ Release Notes.
* Fix bug that `endpoint-name-grouping.yml` is not customizable in Dockerized case.
* Fix bug that istio version metric type on UI template mismatches the otel rule.
* Improve ReadWriteSafeCache concurrency read-write performance
* Fix bug that if use JSON as InfluxDB.ResponseFormat then NumberFormatException maybe occur.
#### UI
* Fix un-removed tags in trace query.
......
......@@ -101,8 +101,8 @@ public class TopNRecordsQuery implements ITopNRecordsQueryDAO {
}
private static final Comparator<SelectedRecord> ASCENDING = Comparator.comparingLong(
a -> Long.parseLong(a.getValue()));
a -> ((Number) Double.parseDouble(a.getValue())).longValue());
private static final Comparator<SelectedRecord> DESCENDING = (a, b) -> Long.compare(
Long.parseLong(b.getValue()), Long.parseLong(a.getValue()));
((Number) Double.parseDouble(b.getValue())).longValue(), ((Number) Double.parseDouble(a.getValue())).longValue());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册