This is an automated email from the ASF dual-hosted git repository.

yuchenhe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new d1cff5b  feat(script): lengthen downgrade and close replica timeout 
(#907)
d1cff5b is described below

commit d1cff5b14c6c62dc35d4110547ae57dc04fbe4b9
Author: HeYuchen <[email protected]>
AuthorDate: Fri Feb 11 17:01:45 2022 +0800

    feat(script): lengthen downgrade and close replica timeout (#907)
---
 scripts/pegasus_rolling_update.sh       | 9 ++++++---
 scripts/pegasus_update_ingest_behind.sh | 4 ++--
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/scripts/pegasus_rolling_update.sh 
b/scripts/pegasus_rolling_update.sh
index 463e3c6..a604127 100755
--- a/scripts/pegasus_rolling_update.sh
+++ b/scripts/pegasus_rolling_update.sh
@@ -164,6 +164,7 @@ do
 
   echo "Migrating primary replicas out of node..."
   sleeped=0
+  # Migration timeout 30 seconds
   while true
   do
     if [ $((sleeped%10)) -eq 0 ]; then
@@ -175,7 +176,7 @@ do
       echo "Migrate done."
       break
     elif [ $sleeped -gt 28 ]; then
-      echo "Downgrade timeout."
+      echo "Migrate timeout."
       break
     else
       echo "Still $pri_count primary replicas left on $node"
@@ -188,6 +189,7 @@ do
 
   echo "Downgrading replicas on node..."
   sleeped=0
+  # Downgrade timeout 90 seconds
   while true
   do
     if [ $((sleeped%50)) -eq 0 ]; then
@@ -198,7 +200,7 @@ do
     if [ $rep_count -eq 0 ]; then
       echo "Downgrade done."
       break
-    elif [ $sleeped -gt 28 ]; then
+    elif [ $sleeped -gt 88 ]; then
       echo "Downgrade timeout."
       break
     else
@@ -212,6 +214,7 @@ do
 
   echo "Checking replicas closed on node..."
   sleeped=0
+  # Close timeout 90 seconds
   while true
   do
     if [ $((sleeped%50)) -eq 0 ]; then
@@ -236,7 +239,7 @@ do
     if [ $rep_count -eq 0 ]; then
       echo "Close done."
       break
-    elif [ $sleeped -gt 28 ]; then
+    elif [ $sleeped -gt 88 ]; then
       echo "Close timeout."
       break
     else
diff --git a/scripts/pegasus_update_ingest_behind.sh 
b/scripts/pegasus_update_ingest_behind.sh
index 61c5382..567264e 100755
--- a/scripts/pegasus_update_ingest_behind.sh
+++ b/scripts/pegasus_update_ingest_behind.sh
@@ -224,7 +224,7 @@ do
     if [ $rep_count -eq 0 ]; then
       echo "Downgrade done."
       break
-    elif [ $sleeped -gt 28 ]; then
+    elif [ $sleeped -gt 88 ]; then
       echo "Downgrade timeout."
       break
     else
@@ -262,7 +262,7 @@ do
     if [ $rep_count -eq 0 ]; then
       echo "Close done."
       break
-    elif [ $sleeped -gt 28 ]; then
+    elif [ $sleeped -gt 88 ]; then
       echo "Close timeout."
       break
     else

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to