From 92898a88395593dee958635ebb9d3fbfba3aa195 Mon Sep 17 00:00:00 2001 From: Derek Su Date: Tue, 10 Dec 2024 13:29:51 +0800 Subject: [PATCH] feat: increase the timeout of lvstore creation While creating a big lvstore, 60-second timeout is apparently not enough. To address the issue, we replace SendCommand which has only 60-second timeout with SendCommandWithLongTimeout. Longhorn 9221 Signed-off-by: Derek Su --- pkg/spdk/client/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/spdk/client/basic.go b/pkg/spdk/client/basic.go index 79965ea..bbd5bae 100644 --- a/pkg/spdk/client/basic.go +++ b/pkg/spdk/client/basic.go @@ -109,7 +109,7 @@ func (c *Client) BdevLvolCreateLvstore(bdevName, lvsName string, clusterSize uin ClusterSz: clusterSize, } - cmdOutput, err := c.jsonCli.SendCommand("bdev_lvol_create_lvstore", req) + cmdOutput, err := c.jsonCli.SendCommandWithLongTimeout("bdev_lvol_create_lvstore", req) if err != nil { return "", err }