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 2025/09/05 10:11:59 UTC
(skywalking-banyandb) branch main updated: fix panic when repair property (#753)
This is an automated email from the ASF dual-hosted git repository.
hanahmily pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
The following commit(s) were added to refs/heads/main by this push:
new eaf69c38 fix panic when repair property (#753)
eaf69c38 is described below
commit eaf69c383fc63c670974187a262c5a9a784b6a11
Author: mrproliu <74...@qq.com>
AuthorDate: Fri Sep 5 18:11:54 2025 +0800
fix panic when repair property (#753)
Co-authored-by: Gao Hongtao <ha...@gmail.com>
---
banyand/property/shard.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/banyand/property/shard.go b/banyand/property/shard.go
index 9d5895fe..f8ef9fe3 100644
--- a/banyand/property/shard.go
+++ b/banyand/property/shard.go
@@ -195,6 +195,9 @@ func (s *shard) buildDeleteFromTimeDocuments(ctx context.Context, docID [][]byte
Type: index.SeriesMatcherTypeExact,
})
}
+ if len(seriesMatchers) == 0 {
+ return nil, nil
+ }
iq, err := s.store.BuildQuery(seriesMatchers, nil, nil)
if err != nil {
return nil, fmt.Errorf("build property query failure: %w", err)