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