Skip to content

Commit 34c3468

Browse files
songxiaoshengsonglusheng
andauthored
Fix nan problem (#15586)
* fix provider get baggage error * fix BytesEncoder Cast Exception * add zipkin-sender-urlconnection default * format code * fix nan problem --------- Co-authored-by: songlusheng <songlusheng@bilibili.com>
1 parent a121270 commit 34c3468

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dubbo-metrics/dubbo-metrics-api/src/main/java/org/apache/dubbo/metrics/aggregate/DubboMergingDigest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public void add(double x, int w) {
283283

284284
private void add(double x, int w, List<Double> history) {
285285
if (Double.isNaN(x)) {
286-
throw new IllegalArgumentException("Cannot add NaN to t-digest");
286+
return;
287287
}
288288

289289
int where;

0 commit comments

Comments
 (0)