Apache Lucene open-source search software
kill Solr example server if it hasn't started after 30 minutes
Michael McCandless5d8cc29da909
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.pyindex f294382a80b..502e49b785f 100644--- a/dev-tools/scripts/smokeTestRelease.py+++ b/dev-tools/scripts/smokeTestRelease.py@@ -766,19 +766,21 @@ def testSolrExample(unpackPath, javaPath, isSrc):serverThread.setDaemon(True)serverThread.start()- # Make sure Solr finishes startup:- if not startupEvent.wait(1800):- raise RuntimeError('startup took more than 30 minutes')- if failureEvent.isSet():- logFile = os.path.abspath(logFile)- print('Startup failed; see log %s' % logFile)- printFileContents(logFile)- raise RuntimeError('failure on startup; see log %s' % logFile)-- print(' startup done')-try:++ # Make sure Solr finishes startup:+ if not startupEvent.wait(1800):+ raise RuntimeError('startup took more than 30 minutes')++ if failureEvent.isSet():+ logFile = os.path.abspath(logFile)+ print('Startup failed; see log %s' % logFile)+ printFileContents(logFile)+ raise RuntimeError('failure on startup; see log %s' % logFile)++ print(' startup done')+print(' test utf8...')run('sh ./exampledocs/test_utf8.sh', 'utf8.log')print(' index example docs...')