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 540d61858 fix: release bigValuePool (#1165)
540d61858 is described below

commit 540d6185819c4515fbefa068d5d8c2293edf7fb0
Author: eye-gu <[email protected]>
AuthorDate: Tue Jun 9 05:20:13 2026 +0800

    fix: release bigValuePool (#1165)
---
 banyand/measure/batch_decode.go | 1 +
 banyand/measure/block_batch.go  | 1 +
 banyand/measure/query.go        | 1 +
 3 files changed, 3 insertions(+)

diff --git a/banyand/measure/batch_decode.go b/banyand/measure/batch_decode.go
index eafcc74d1..cdb1b17d3 100644
--- a/banyand/measure/batch_decode.go
+++ b/banyand/measure/batch_decode.go
@@ -81,6 +81,7 @@ func appendDecodedTagBytesAsTyped(col vectorized.Column, 
valueType pbv1.ValueTyp
                        logger.Panicf("appendDecodedTagBytesAsTyped: column 
type %s mismatched with valueType string[]", col.Type())
                }
                bb := bigValuePool.Generate()
+               defer bigValuePool.Release(bb)
                var values []string
                buf := raw
                var err error
diff --git a/banyand/measure/block_batch.go b/banyand/measure/block_batch.go
index 2cdeb91f1..7922f98ed 100644
--- a/banyand/measure/block_batch.go
+++ b/banyand/measure/block_batch.go
@@ -456,6 +456,7 @@ func setDecodedTagBytesAt(col vectorized.Column, valueType 
pbv1.ValueType, raw [
                col.(*vectorized.TypedColumn[[]int64]).SetAt(destRow, values)
        case pbv1.ValueTypeStrArr:
                bb := bigValuePool.Generate()
+               defer bigValuePool.Release(bb)
                var values []string
                buf := raw
                var unmarshalErr error
diff --git a/banyand/measure/query.go b/banyand/measure/query.go
index 093289bbe..3cd3e9ed8 100644
--- a/banyand/measure/query.go
+++ b/banyand/measure/query.go
@@ -658,6 +658,7 @@ func mustDecodeTagValue(valueType pbv1.ValueType, value 
[]byte) *modelv1.TagValu
        case pbv1.ValueTypeStrArr:
                var values []string
                bb := bigValuePool.Generate()
+               defer bigValuePool.Release(bb)
                var err error
                for len(value) > 0 {
                        bb.Buf, value, err = unmarshalVarArray(bb.Buf[:0], 
value)

Reply via email to