mirror of https://github.com/apache/lucene.git
check solr return code
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@472148 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1f94c5bb60
commit
0a428ad3fb
|
@ -123,5 +123,6 @@ Other Changes
|
||||||
5. Updated to Lucene 2.0 nightly build 2006-09-07
|
5. Updated to Lucene 2.0 nightly build 2006-09-07
|
||||||
6. Added javascript to catch empty query in admin query forms (Tomislav Nakic-Alfirevic via billa, SOLR-48
|
6. Added javascript to catch empty query in admin query forms (Tomislav Nakic-Alfirevic via billa, SOLR-48
|
||||||
7. blackslash escape * in ssh command used in snappuller for zsh compatibility, SOLR-63
|
7. blackslash escape * in ssh command used in snappuller for zsh compatibility, SOLR-63
|
||||||
|
8. check solr return code in admin scripts, SOLR-62
|
||||||
|
|
||||||
2006/01/17 Solr open sourced, moves to Apache Incubator
|
2006/01/17 Solr open sourced, moves to Apache Incubator
|
||||||
|
|
|
@ -120,7 +120,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check status of commit request
|
# check status of commit request
|
||||||
rc=`echo $rs|cut -f2 -d'"'`
|
echo $rs | grep '<result.*status="0"' > /dev/null 2>&1
|
||||||
if [[ $? != 0 ]]
|
if [[ $? != 0 ]]
|
||||||
then
|
then
|
||||||
logMessage commit request to Solr at port ${solr_port} failed:
|
logMessage commit request to Solr at port ${solr_port} failed:
|
||||||
|
|
|
@ -120,7 +120,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check status of optimize request
|
# check status of optimize request
|
||||||
rc=`echo $rs|cut -f2 -d'"'`
|
echo $rs | grep '<result.*status="0"' > /dev/null 2>&1
|
||||||
if [[ $? != 0 ]]
|
if [[ $? != 0 ]]
|
||||||
then
|
then
|
||||||
logMessage optimize request to Solr at port ${solr_port} failed:
|
logMessage optimize request to Solr at port ${solr_port} failed:
|
||||||
|
|
|
@ -107,7 +107,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check status of commit request
|
# check status of commit request
|
||||||
rc=`echo $rs|cut -f2 -d'"'`
|
echo $rs | grep '<result.*status="0"' > /dev/null 2>&1
|
||||||
if [[ $? != 0 ]]
|
if [[ $? != 0 ]]
|
||||||
then
|
then
|
||||||
logMessage commit request to Solr at port ${solr_port} failed:
|
logMessage commit request to Solr at port ${solr_port} failed:
|
||||||
|
|
|
@ -106,7 +106,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check status of optimize request
|
# check status of optimize request
|
||||||
rc=`echo $rs|cut -f2 -d'"'`
|
echo $rs | grep '<response.*status="0"' > /dev/null 2>&1
|
||||||
if [[ $? != 0 ]]
|
if [[ $? != 0 ]]
|
||||||
then
|
then
|
||||||
logMessage optimize request to Solr at port ${solr_port} failed:
|
logMessage optimize request to Solr at port ${solr_port} failed:
|
||||||
|
|
|
@ -106,7 +106,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check status of commit request
|
# check status of commit request
|
||||||
rc=`echo $rs|cut -f2 -d'"'`
|
echo $rs | grep '<response.*status="0"' > /dev/null 2>&1
|
||||||
if [[ $? != 0 ]]
|
if [[ $? != 0 ]]
|
||||||
then
|
then
|
||||||
logMessage reader cycle request to Solr at port ${solr_port} failed:
|
logMessage reader cycle request to Solr at port ${solr_port} failed:
|
||||||
|
|
Loading…
Reference in New Issue