-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Lines 679 to 691 in 8db3d75
| output=$(if [ -f "$cmd_out_log" ]; then cat "$cmd_out_log"; rm -f "$cmd_out_log"; fi) | |
| suErr=$(if [ -f "$su_err_log" ]; then cat "$su_err_log"; rm -f "$su_err_log"; else echo "NA"; fi) | |
| cmdErr=$(if [ -f "$cmd_err_log" ]; then cat "$cmd_err_log"; rm -f "$cmd_err_log"; else echo "NA"; fi) | |
| super_ocf_log debug "DBG: RA ==== action HANA_CALL (cmd is '$cmd', rc is '$rc', stderr from su is '$suErr', stderr from cmd is '$cmdErr') ====" | |
| # on rc=1 - retry to improve the behavior in AD environments | |
| if [ $rc -eq 1 ]; then | |
| super_ocf_log warn "RA: HANA_CALL stderr from command '$pre_cmd' is '$suErr', stderr from command '$cmd' is '$cmdErr'" | |
| if [ "$cmdErr" == "NA" ]; then | |
| # seems something was going wrong with the 'pre_cmd' (su) | |
| super_ocf_log warn "DEC: HANA_CALL returned '1' for command '$pre_cmd'. Retry once." | |
| output=$(timeout --foreground -s 9 "$timeOut" $pre_cmd "$pre_script; timeout -s 9 $timeOut $cmd"); rc=$? | |
| fi | |
| fi |
Metadata
Metadata
Assignees
Labels
No labels