the bin/commit in the snap* stuff returns a failure even if the commit worked, has anyone run into this? The grep looks for <result.*status="0" but solr returns <int' 'name="status">0</int>

[EMAIL PROTECTED]:/XXX/solr/dist/YYY$ sudo bin/commit -h careful.XXX -p 80 -w YYY -v -V
+ [[ -n '' ]]
+ [[ -z 80 ]]
+ [[ -z careful.XXX ]]
+ [[ -z YYY ]]
+ curl_url='http://careful.XXX:80/YYY/update-ro?commit=true'
+ fixUser -h careful.XXX -p 80 -w YYY -v -V
+ [[ -z '' ]]
++ whoami
+ user=root
++ whoami
+ [[ root != root ]]
++ who -m
++ cut '-d ' -f1
++ sed '-es/^.*!//'
+ oldwhoami=bwhitman
+ [[ bwhitman == '' ]]
++ date +%s
+ start=1210275612
+ logMessage started by bwhitman
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo 2008/05/08 19:40:12 started by bwhitman
+ [[ -n v ]]
+ echo started by bwhitman
started by bwhitman
+ logMessage command: bin/commit -h careful.XXX -p 80 -w YYY -v -V
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo 2008/05/08 19:40:12 command: bin/commit -h careful.XXX -p 80 -w YYY -v -V
+ [[ -n v ]]
+ echo command: bin/commit -h careful.XXX -p 80 -w YYY -v -V
command: bin/commit -h careful.XXX -p 80 -w YYY -v -V
++ curl 'http://careful.XXX:80/YYY/update-ro?commit=true' -s -H 'Content-type:text/xml; charset=utf-8' -d '<commit/>'
+ rs='<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">39770</int></lst><str name="WARNING">This response format is experimental. It is likely to change in the future.</str>
</response>'
+ [[ 0 != 0 ]]
+ echo '<?xml' 'version="1.0"' 'encoding="UTF-8"?>' '<response>' '<lst' 'name="responseHeader"><int' 'name="status">0</int><int' 'name="QTime">39770</int></lst><str' 'name="WARNING">This' response format is experimental. It is likely to change in the 'future.</str>' '</response>'
+ grep '<result.*status="0"'
+ [[ 1 != 0 ]]
+ logMessage commit request to Solr at 'http://careful.XXX:80/YYY/update-ro?commit=true' failed:
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo 2008/05/08 19:40:51 commit request to Solr at 'http://careful.XXX:80/YYY/update-ro?commit=true' failed:
+ [[ -n v ]]
+ echo commit request to Solr at 'http://careful.XXX:80/YYY/update-ro?commit=true' failed: commit request to Solr at http://careful.XXX:80/YYY/update-ro?commit=true failed: + logMessage '<?xml' 'version="1.0"' 'encoding="UTF-8"?>' '<response>' '<lst' 'name="responseHeader"><int' 'name="status">0</int><int' 'name="QTime">39770</int></lst><str' 'name="WARNING">This' response format is experimental. It is likely to change in the 'future.</str>' '</response>'
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo 2008/05/08 19:40:51 '<?xml' 'version="1.0"' 'encoding="UTF-8"? >' '<response>' '<lst' 'name="responseHeader"><int' 'name="status">0</ int><int' 'name="QTime">39770</int></lst><str' 'name="WARNING">This' response format is experimental. It is likely to change in the 'future.</str>' '</response>'
+ [[ -n v ]]
+ echo '<?xml' 'version="1.0"' 'encoding="UTF-8"?>' '<response>' '<lst' 'name="responseHeader"><int' 'name="status">0</int><int' 'name="QTime">39770</int></lst><str' 'name="WARNING">This' response format is experimental. It is likely to change in the 'future.</str>' '</response>' <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"><int name="status">0</int><int name="QTime">39770</int></lst><str name="WARNING">This response format is experimental. It is likely to change in the future.</str> </response>
+ logExit failed 2
++ date +%s
+ end=1210275652
++ expr 1210275652 - 1210275612
+ diff=40
++ timeStamp
++ date '+%Y/%m/%d %H:%M:%S'
+ echo '2008/05/08 19:40:52 failed (elapsed time: 40 sec)'
+ exit 2



Reply via email to