This is an automated email from the ASF dual-hosted git repository.
wangdan 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 877c6bd01 fix(scripts): downgrade_node does not work with set -e
(#2056)
877c6bd01 is described below
commit 877c6bd01fcf90918f446f95b07ed8f22a5d65d7
Author: Samunroyu <[email protected]>
AuthorDate: Thu Jul 4 14:33:36 2024 +0800
fix(scripts): downgrade_node does not work with set -e (#2056)
The downgrade_node scripts usually used in the scale down replica server.
The function of downgrade_node scripts implementation with wild char of
shell output.
- The character matching is not success for every single line in shell
output.
So add "set -e" will exit with 1 and report failed.
- Fix a shell grammar problem.
---
scripts/downgrade_node.sh | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/scripts/downgrade_node.sh b/scripts/downgrade_node.sh
index 3a405876c..5d8c59c54 100755
--- a/scripts/downgrade_node.sh
+++ b/scripts/downgrade_node.sh
@@ -16,8 +16,6 @@
# specific language governing permissions and limitations
# under the License.
-set -e
-
PID=$$
function usage()
@@ -63,7 +61,7 @@ echo "UID=$UID"
echo "PID=$PID"
echo
-if [ [ "$cluster" != "" ]; then
+if [ "$cluster" != "" ]; then
echo "set_meta_level steady" | ./run.sh shell --cluster $cluster
&>/tmp/$UID.$PID.pegasus.set_meta_level
echo ls | ./run.sh shell --cluster $cluster &>/tmp/$UID.$PID.pegasus.ls
else
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]