Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_for_replica runs only for non-sdp setup #13

Open
jayanthsv opened this issue Apr 23, 2020 · 0 comments
Open

check_for_replica runs only for non-sdp setup #13

jayanthsv opened this issue Apr 23, 2020 · 0 comments

Comments

@jayanthsv
Copy link

jayanthsv commented Apr 23, 2020

In monitor_metics.sh, around line 112 the check_for_replica is run only for non-SDP setup. IMO, it should run for both setups, else monitor_pull would fail for SDP setups.

Change needed would be

errors_file=$($p4 configure show | egrep "serverlog.file.*errors.csv" | cut -d= -f2 | sed -e 's/ (.*//')
fi

check_for_replica=$($p4 info | grep -c 'Replica of:')
if [[ "$check_for_replica" -eq "0" ]]; then
     P4REPLICA="FALSE"
else
    P4REPLICA="TRUE"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant