From 8787e65b1f47faab4be92f8b770f182676e5488b Mon Sep 17 00:00:00 2001 From: CharlesFeng Date: Mon, 9 Sep 2024 11:25:05 +0800 Subject: [PATCH] fix: lifeTime not released in time (#36093) https://github.com/milvus-io/milvus/issues/36092 Signed-off-by: fengjun2016 --- internal/distributed/streaming/wal.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/distributed/streaming/wal.go b/internal/distributed/streaming/wal.go index 2363e0397e..0835a9d678 100644 --- a/internal/distributed/streaming/wal.go +++ b/internal/distributed/streaming/wal.go @@ -90,9 +90,11 @@ func (w *walAccesserImpl) Txn(ctx context.Context, opts TxnOption) (Txn, error) } if opts.VChannel == "" { + w.lifetime.Done() return nil, status.NewInvaildArgument("vchannel is required") } if opts.Keepalive < 1*time.Millisecond { + w.lifetime.Done() return nil, status.NewInvaildArgument("ttl must be greater than or equal to 1ms") }