Skip to content

Commit

Permalink
feat: increase the timeout of lvstore creation
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
derekbit authored and innobead committed Dec 10, 2024
1 parent e5a448a commit 92898a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spdk/client/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 92898a8

Please sign in to comment.