You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2026/01/29 10:51:44 UTC
(inlong) branch master updated: [INLONG-12069][Audit] Fill with zero when there is no data for a given the API of day (#12070)
This is an automated email from the ASF dual-hosted git repository.
doleyzi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new b5286a1067 [INLONG-12069][Audit] Fill with zero when there is no data for a given the API of day (#12070)
b5286a1067 is described below
commit b5286a106760e2573e8f36fb413f477ee66f7fe6
Author: doleyzi <43...@users.noreply.github.com>
AuthorDate: Thu Jan 29 18:51:38 2026 +0800
[INLONG-12069][Audit] Fill with zero when there is no data for a given the API of day (#12070)
[INLONG-12069][Audit] Fill with zero when there is no data for a given the API of day (#12070)
---
.../src/main/java/org/apache/inlong/audit/service/cache/DayCache.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/cache/DayCache.java b/inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/cache/DayCache.java
index 5fe2fc5498..f24760c6d5 100644
--- a/inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/cache/DayCache.java
+++ b/inlong-audit/audit-service/src/main/java/org/apache/inlong/audit/service/cache/DayCache.java
@@ -144,6 +144,10 @@ public class DayCache implements AutoCloseable {
LOGGER.error("Query has exception! ", exception);
}
+ if (result.isEmpty()) {
+ result.add(new StatData(startTime, inlongGroupId, inlongStreamId, auditId));
+ }
+
return WILDCARD_STREAM_ID.equals(inlongStreamId)
? AuditUtils.aggregateStatData(result, inlongStreamId)
: result;