e3c68b
From ae4f538065d26a277e38810c6eef18c0312cd1f3 Mon Sep 17 00:00:00 2001
e3c68b
From: Mohit Agrawal <moagrawal@redhat.com>
e3c68b
Date: Thu, 26 Sep 2019 17:52:30 +0530
e3c68b
Subject: [PATCH 303/304] posix: heketidbstorage bricks go down during PVC
e3c68b
 creation
e3c68b
e3c68b
Problem: In OCS environment heketidbstorage is detached due
e3c68b
         to health_check thread is failed.Sometime aio_write
e3c68b
         is not successfully finished within default health-check-timeout
e3c68b
         limit and the brick is detached.
e3c68b
e3c68b
Solution: To avoid the issue increase default timeout to 20s
e3c68b
e3c68b
> Change-Id: Idff283d5713da571f9d20a6b296274f69c3e5b7b
e3c68b
> Fixes: bz#1755900
e3c68b
> Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
e3c68b
> (Cherry picked from commit c6df9e962483bac5bfcd8916318b19040387ce81)
e3c68b
> (Reviewed on upstream link https://review.gluster.org/#/c/glusterfs/+/23495/)
e3c68b
e3c68b
Change-Id: Idff283d5713da571f9d20a6b296274f69c3e5b7b
e3c68b
BUG: 1752713
e3c68b
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
e3c68b
Reviewed-on: https://code.engineering.redhat.com/gerrit/182387
e3c68b
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e3c68b
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
e3c68b
---
e3c68b
 xlators/storage/posix/src/posix-common.c | 2 +-
e3c68b
 1 file changed, 1 insertion(+), 1 deletion(-)
e3c68b
e3c68b
diff --git a/xlators/storage/posix/src/posix-common.c b/xlators/storage/posix/src/posix-common.c
e3c68b
index 69857d9..2cb58ba 100644
e3c68b
--- a/xlators/storage/posix/src/posix-common.c
e3c68b
+++ b/xlators/storage/posix/src/posix-common.c
e3c68b
@@ -1257,7 +1257,7 @@ struct volume_options posix_options[] = {
e3c68b
     {.key = {"health-check-timeout"},
e3c68b
      .type = GF_OPTION_TYPE_INT,
e3c68b
      .min = 0,
e3c68b
-     .default_value = "10",
e3c68b
+     .default_value = "20",
e3c68b
      .validate = GF_OPT_VALIDATE_MIN,
e3c68b
      .description =
e3c68b
          "Interval in seconds to wait aio_write finish for health check, "
e3c68b
-- 
e3c68b
1.8.3.1
e3c68b