Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification.
The following page has been changed by JimKellerman: http://wiki.apache.org/lucene-hadoop/HudsonBuildServer The comment on the change is: Added instructions for killing a hung test. ------------------------------------------------------------------------------ 1. {{{rm -rf <directory that current points to> current}}} to delete both the directory and the {{{current}}} link Once the {{{current}}} link is gone, a waiting {{{processEmail.sh}}} process will create a new {{{current}}} link and start the next patch build. + 1. '''Killing a hung test:''' + Sometimes it is desirable to just kill a hung test and allow the rest of the build to continue. Although the build will still fail, it can sometimes provide useful information if you can get a thread dump on the hung test and, if the build is in the first test pass, the second pass might succeed as some tests hang only intermittently. You can tell a test is hung by looking at the console log for the build and if the last entry is some time ago (at least 15 minutes) it is safe to assume the test is hung. + 1. Login to {{{lucene.zones.apache.org}}} + 1. Switch to the {{{hudson}}} user + 1. Find the hung test: {{{ps -laxww | grep hudson | egrep -v 'tomcat|grep'}}} + For example, in the listing below, the first process is the one running ant, the second is the hung test and the remaining processes are queued jobs (whitespace was added between the processes to increase readability). + + {{{ + 0 1000 3242 18748 0 59 20498496270884 080753f0 S ? 2:30 /export/home/hudson/tools/java/latest/bin/java -classpath /export/home/hudson/tools/ant/latest/lib/ant-launcher.jar -Dant.home=/export/home/hudson/tools/ant/latest -Dant.library.dir=/export/home/hudson/tools/ant/latest/lib org.apache.tools.ant.launch.Launcher -cp -Dversion=r570633_HADOOP-1785_PATCH-12364743 -Dfindbugs.home=/export/home/hudson/tools/findbugs/latest -Djavac.args=-Xlint -Xmaxwarns 1000 -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=yes clean checkstyle tar findbugs test + + 0 1000 3269 4921 0 59 20152684 984 ffffffffa21bde16 S ? 0:00 /export/home/hudson/tools/java/jdk1.5.0_11/jre/bin/java -Xmx256m -Dtest.build.data=/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/build/test/data -Dtest.cache.data=/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/build/test/cache -Dhadoop.log.dir=/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/build/test/logs -Dtest.src.dir=/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/src/test -Djava.library.path=/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/build/native/ + SunOS-x86-32/lib:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/native/ + SunOS-x86-32 -Dinstall.c++.examples=/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/ + trunk/build/c++-examples/SunOS-x86-32 -classpath /export/home/hudson/hudson/jobs/Hadoop-Patch/ + workspace/trunk/build/test/classes:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/ + src/test:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/build:/export/home/hudson/ + hudson/jobs/Hadoop-Patch/workspace/trunk/build/examples:/export/home/hudson/hudson/jobs/ + Hadoop-Patch/workspace/trunk/build/classes:/export/home/hudson/hudson/jobs/Hadoop-Patch/ + workspace/trunk/lib/commons-cli-2.0-SNAPSHOT.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/ + workspace/trunk/lib/commons-codec-1.3.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/ + workspace/trunk/lib/commons-httpclient-3.0.1.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/ + workspace/trunk/lib/commons-logging-1.0.4.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/ + workspace/trunk/lib/commons-logging-api-1.0.4.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/ + workspace/trunk/lib/jets3t-0.5.0.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/ + lib/jetty-5.1.4.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/jetty-ext/ + commons-el.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/jetty-ext/ + jasper-compiler.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/jetty-ext/ + jasper-runtime.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/jetty-ext/ + jsp-api.jar:/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/junit-3.8.1.jar: + /export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/log4j-1.2.13.jar:/export/home/ + hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/lib/servlet-api.jar:/export/home/hudson/hudson/ + jobs/Hadoop-Patch/workspace/trunk/lib/xmlenc-0.52.jar:/export/home/hudson/hudson/jobs/ + Hadoop-Patch/workspace/trunk/conf:/export/home/hudson/tools/ant/latest/lib/junit-3.8.1.jar: + /export/home/hudson/tools/ant/apache-ant-1.6.5/lib/ant-launcher.jar:/export/home/hudson/tools/ant/ + latest/lib/ant.jar:/export/home/hudson/tools/ant/latest/lib/ant-junit.jar org.apache.tools.ant.taskdefs. + optional.junit.JUnitTestRunner org.apache.hadoop.mapred.TestMiniMRWithDFS filtertrace=true + haltOnError=false haltOnFailure=false formatter=org.apache.tools.ant.taskdefs.optional.junit. + SummaryJUnitResultFormatter showoutput=true formatter=org.apache.tools.ant.taskdefs.optional. + junit.XMLJUnitResultFormatter,/export/home/hudson/hudson/jobs/Hadoop-Patch/workspace/trunk/ + build/test/TEST-org.apache.hadoop.mapred.TestMiniMRWithDFS.xml propsfile=/export/home/hudson/ + hudson/jobs/Hadoop-Patch/workspace/trunk/junit900931401.properties + + 0 1 3871 3869 0 59 20 1044 864 ffffffffa08b7740 S ? 0:00 sh -c /export/home/hudson/hudson/jobs/Hadoop-Patch/bin/processEmail.sh + 0 1 3872 3871 0 59 20 2400 1624 ffffffffa6ce5bb8 S ? 0:00 /bin/bash /export/home/hudson/hudson/jobs/Hadoop-Patch/bin/processEmail.sh + 0 1 22682 22681 0 59 20 1044 864 ffffffffbafe65a8 S ? 0:00 sh -c /export/home/hudson/hudson/jobs/Hadoop-Patch/bin/processEmail.sh + 0 1 22686 22682 0 59 20 2400 1624 ffffffffa531d400 S ? 0:00 /bin/bash /export/home/hudson/hudson/jobs/Hadoop-Patch/bin/processEmail.sh + }}} + + 1. {{{kill -QUIT 3269}}} to try to get a thread dump. Although this does not always work (because the test is just too locked up), if it does work, it can provide useful debugging information. + 1. {{{kill -9 3269}}} to kill the hung test. If you are watching the console (and you should be), you should see the console output resume. + 1. '''Creating a login on Hudson:''' Committers can create a Hudson login for themselves by adding an entry to the Tomcat users list located in {{{~hudson/tools/tomcat/apache-tomcat-5.5.20/conf/tomcat-users.xml}}}. Simply copy and edit an existing entry. Once your entry is added, Tomcat must be restarted (see below for instructions to perform this task). Once Tomcat is restarted, you can then login to the web interface.