This is an automated email from the ASF dual-hosted git repository.
evansye pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 48c3495 BIGTOP-3160. [Provisioner] Treat both exit code 0 and 2 as
success for Puppet execution (#466)
48c3495 is described below
commit 48c34955e93c04787be685413a2bf2c3857137cb
Author: Evans Ye <[email protected]>
AuthorDate: Wed Feb 13 17:28:10 2019 +0800
BIGTOP-3160. [Provisioner] Treat both exit code 0 and 2 as success for
Puppet execution (#466)
---
provisioner/docker/docker-hadoop.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/provisioner/docker/docker-hadoop.sh
b/provisioner/docker/docker-hadoop.sh
index 27e3903..02e8697 100755
--- a/provisioner/docker/docker-hadoop.sh
+++ b/provisioner/docker/docker-hadoop.sh
@@ -123,7 +123,12 @@ provision() {
(
bigtop-puppet $node
result=$?
- if [ $result != 0 ]; then
+ # 0: The run succeeded with no changes or failures; the system was
already in the desired state.
+ # 1: The run failed, or wasn't attempted due to another run already in
progress.
+ # 2: The run succeeded, and some resources were changed.
+ # 4: The run succeeded, and some resources failed.
+ # 6: The run succeeded, and included both changes and failures.
+ if [ $result != 0 ] && [ $result != 2 ]; then
log "Failed to provision container $node with exit code $result" >
.error_msg_$node
fi
) &