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