From 185aa5f83deae17a2d79a0528d02b1cb72b1d6cc Mon Sep 17 00:00:00 2001 From: xzchaoo Date: Thu, 4 Jan 2024 21:20:14 +0800 Subject: [PATCH] fix: detail data with empty fields are allowed (#774) --- .../server/gateway/core/grpc/DetailsStorageService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/gateway/gateway-core/src/main/java/io/holoinsight/server/gateway/core/grpc/DetailsStorageService.java b/server/gateway/gateway-core/src/main/java/io/holoinsight/server/gateway/core/grpc/DetailsStorageService.java index e5ca618a4..c1d45334a 100644 --- a/server/gateway/gateway-core/src/main/java/io/holoinsight/server/gateway/core/grpc/DetailsStorageService.java +++ b/server/gateway/gateway-core/src/main/java/io/holoinsight/server/gateway/core/grpc/DetailsStorageService.java @@ -56,9 +56,10 @@ public Mono write(AuthInfo authInfo, WriteMetricsRequestV4 req) { row.setTimestamp(pbrow.getTimestamp()); row.setTagValues(pbrow.getTagValuesList()); List fieldValues = new ArrayList<>(pbrow.getValueValuesCount()); - if (pbrow.getValueValuesCount() == 0) { - continue; - } + // empty fields are allowed + // if (pbrow.getValueValuesCount() == 0) { + // continue; + // } for (DataNode dn : pbrow.getValueValuesList()) { fieldValues.add(dn.getValue()); }