This is an automated email from the ASF dual-hosted git repository.
zhaoliwei 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 9e00520 fix(script): increase the assign-delay time (#781)
9e00520 is described below
commit 9e0052023a3a4a539b4b827970a9ebcee4c8a33d
Author: Jiashuo <[email protected]>
AuthorDate: Tue Jul 20 10:59:51 2021 +0800
fix(script): increase the assign-delay time (#781)
---
rdsn | 2 +-
scripts/pegasus_rolling_update.sh | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/rdsn b/rdsn
index 1275b1b..e31d49c 160000
--- a/rdsn
+++ b/rdsn
@@ -1 +1 @@
-Subproject commit 1275b1bfe886289900f29a7091f6697257a11a6f
+Subproject commit e31d49ca6d98dba7b83b272cae0346edf6026337
diff --git a/scripts/pegasus_rolling_update.sh
b/scripts/pegasus_rolling_update.sh
index 39b0048..b4e1e9b 100755
--- a/scripts/pegasus_rolling_update.sh
+++ b/scripts/pegasus_rolling_update.sh
@@ -123,6 +123,14 @@ if [ $set_ok -ne 1 ]; then
exit 1
fi
+echo "Set lb.assign_delay_ms to 30min..."
+echo "remote_command -l $pmeta meta.lb.assign_delay_ms 1800000" | ./run.sh
shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.rolling_node.assign_delay_ms
+set_ok=`grep OK /tmp/$UID.$PID.pegasus.rolling_node.assign_delay_ms | wc -l`
+if [ $set_ok -ne 1 ]; then
+ echo "ERROR: set lb.assign_delay_ms to 30min failed"
+ exit 1
+fi
+
echo
while read line
do
@@ -302,6 +310,15 @@ if [ $set_ok -ne 1 ]; then
exit 1
fi
+echo "Set lb.assign_delay_ms to DEFAULT..."
+echo "remote_command -l $pmeta meta.lb.assign_delay_ms DEFAULT" | ./run.sh
shell --cluster $meta_list &>/tmp/$UID.$PID.pegasus.rolling_node.assign_delay_ms
+set_ok=`grep OK /tmp/$UID.$PID.pegasus.rolling_node.assign_delay_ms | wc -l`
+if [ $set_ok -ne 1 ]; then
+ echo "ERROR: set lb.assign_delay_ms to DEFAULT failed"
+ exit 1
+fi
+echo
+
if [ "$type" = "all" ]; then
echo "=================================================================="
echo "=================================================================="
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]