You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2022/12/29 13:31:21 UTC

[skywalking] branch banyandb updated: Remove debug info and update changes.md

This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch banyandb
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/banyandb by this push:
     new cc00771560 Remove debug info and update changes.md
cc00771560 is described below

commit cc00771560679bcb901fab2568a05335a9c90079
Author: Gao Hongtao <ha...@gmail.com>
AuthorDate: Thu Dec 29 21:27:22 2022 +0800

    Remove debug info and update changes.md
    
    Signed-off-by: Gao Hongtao <ha...@gmail.com>
---
 docs/en/changes/changes.md                                       | 2 ++
 .../oap/server/storage/plugin/banyandb/BanyanDBConverter.java    | 9 ---------
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md
index 8b475c7837..9b8c75ec73 100644
--- a/docs/en/changes/changes.md
+++ b/docs/en/changes/changes.md
@@ -65,6 +65,8 @@
 * Remove `time_bucket` for both Stream and Measure kinds in BanyanDB plugin.
 * Merge `TIME_BUCKET` of `Metrics` and `Record` into `StorageData`.
 * Support no `layer` in the `listServices` query.
+* Correct the TopN record query DAO of BanyanDB.
+* Tweak interval settings of BanyanDB.
 
 #### UI
 
diff --git a/oap-server/server-storage-plugin/storage-banyandb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/banyandb/BanyanDBConverter.java b/oap-server/server-storage-plugin/storage-banyandb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/banyandb/BanyanDBConverter.java
index 792bb0f5a0..3a627b6ea5 100644
--- a/oap-server/server-storage-plugin/storage-banyandb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/banyandb/BanyanDBConverter.java
+++ b/oap-server/server-storage-plugin/storage-banyandb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/banyandb/BanyanDBConverter.java
@@ -55,15 +55,6 @@ public class BanyanDBConverter {
             if (fieldName.equals(Record.TIME_BUCKET)) {
                 final String timestampColumnName = schema.getTimestampColumn4Stream();
                 long timestampMillis = ((Number) this.get(timestampColumnName)).longValue();
-                if (timestampMillis == 0) {
-                    log.error("invalid ts: {}-{} downsampling:{} ts:{} tb:{}",
-                            this.schema.getMetadata().getGroup(),
-                            this.schema.getMetadata().getModelName(),
-                            schema.getMetadata().getDownSampling(),
-                            this.get(timestampColumnName),
-                            this.get(Record.TIME_BUCKET));
-                    timestampMillis  = System.currentTimeMillis();
-                }
                 return TimeBucket.getTimeBucket(timestampMillis, schema.getMetadata().getDownSampling());
             }
             MetadataRegistry.ColumnSpec spec = schema.getSpec(fieldName);