diff options
Diffstat (limited to 'auth/auth-cass/cass_init/push.sh')
-rw-r--r-- | auth/auth-cass/cass_init/push.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/auth/auth-cass/cass_init/push.sh b/auth/auth-cass/cass_init/push.sh index 9d59bd0f..f3e5d80d 100644 --- a/auth/auth-cass/cass_init/push.sh +++ b/auth/auth-cass/cass_init/push.sh @@ -35,7 +35,11 @@ fi cd dats for T in $(ls *.dat); do if [ -s $T ]; then - cqlsh -e "COPY authz.${T/.dat/} FROM '$T' WITH DELIMITER='|';" + until cqlsh --request-timeout=60 -e "COPY authz.${T/.dat/} FROM '$T' WITH DELIMITER='|';"; + do + echo "Unexpected failure...sleep for 10 seconds and try again" + sleep 10 + done fi done cd $DIR |