From 248d52be850ab70a47b699bcdc026ad73000958b Mon Sep 17 00:00:00 2001 From: Derek Su Date: Thu, 28 Nov 2024 22:04:27 +0800 Subject: [PATCH 1/2] fix: decrease ctrlr_loss_timeout_sec for base bdev Longhorn 9874 Signed-off-by: Derek Su --- pkg/types/types.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/types/types.go b/pkg/types/types.go index 19e75bf4..d63d53fd 100644 --- a/pkg/types/types.go +++ b/pkg/types/types.go @@ -22,10 +22,11 @@ const ( ShallowCopyStateComplete = "complete" ShallowCopyStateError = "error" - DefaultCtrlrLossTimeoutSec = 30 - // DefaultReconnectDelaySec can't be more than DefaultFastIoFailTimeoutSec, same for non-default values. + DefaultCtrlrLossTimeoutSec = 15 + // DefaultReconnectDelaySec can't be more than DefaultFastIOFailTimeoutSec. DefaultReconnectDelaySec = 2 - DefaultFastIOFailTimeoutSec = 15 + DefaultFastIOFailTimeoutSec = 10 + // DefaultTransportAckTimeout value is not the timeout second. // The timeout formula is 2^(transport_ack_timeout) msec. // DefaultTransportAckTimeout is 14, so the default timeout is 2^14 = 16384 msec = 16.384 sec. From 94b33307fad26491eb819096648fd0e9d2c11a3a Mon Sep 17 00:00:00 2001 From: Derek Su Date: Thu, 28 Nov 2024 22:04:43 +0800 Subject: [PATCH 2/2] chore: add go-spdk-helper in .gitignore Signed-off-by: Derek Su --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 813b2305..45468477 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.o *.a *.so +go-spdk-helper # Folders _obj @@ -38,4 +39,4 @@ bin/ # ignores all goland project folders and files .idea/ *.iml -*.ipr \ No newline at end of file +*.ipr