Dawid: Boy, those are some large timeouts! Mike: The build.properties suggestion resolved my issue. I can now run the test to completion.
On a Mid 2009 MacBook Pro running Mavericks and using Java 6 executing ant from the top level of the lucene-solr project I get the following timings: ant clean compile -- 3 minutes ant clean test (tests.disableHdfs=true, tests.slow=false) -- 55 minutes ant clean test (tests.disableHdfs=true) -- 88 minutes On a Mid 2012 MacBook Pro with the same software stack: ant clean compile -- 1 minute ant clean test (tests.disableHdfs=true, tests.slow=false) -- 8 minutes All running from the same git commit mentioned at the top of this thread. The tests make great use of multiple CPU/cores so a faster machine makes a huge difference to the total runtime. Do the HDFS tests fail due to test bugs or implementation issues? How do you feel about changing the default value of tests.disableHdfs to true versus updating the wiki documentation to let knew contributors know how to work around this? --Terry On Fri, Mar 7, 2014 at 12:46 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > I just ran "ant test" under Solr; it took 4 minutes 25 seconds. > > But, in my ~/build.properties I have: > > tests.disableHdfs=true > tests.slow=false > > Which makes things substantially faster, and also [seems to] sidestep > the Solr tests that false fail. > > Mike McCandless > > http://blog.mikemccandless.com > > > On Fri, Mar 7, 2014 at 9:04 AM, Terry Smith <sheb...@gmail.com> wrote: > > Mike, > > > > Fair enough. I'll let them run for more than 30 minutes and see what > > happens. > > > > How long does it take on your machine? I'm happy to signup for the wiki > and > > add some extra information to > > http://wiki.apache.org/lucene-java/HowToContribute for folks wanting to > > tinker with Lucene. > > > > Do the Lucene developers typically run a subset of the test suite to make > > committing cheaper? > > > > Thanks, > > > > --Terry > > > > > > > > On Fri, Mar 7, 2014 at 5:52 AM, Michael McCandless > > <luc...@mikemccandless.com> wrote: > >> > >> Unfortunately, some tests take a very long time, and the test infra > >> will print these HEARTBEAT messages notifying you that they are still > >> running. They should eventually finish? > >> > >> Mike McCandless > >> > >> http://blog.mikemccandless.com > >> > >> > >> On Thu, Mar 6, 2014 at 5:09 PM, Terry Smith <sheb...@gmail.com> wrote: > >> > I'm sure that I'm just missing something obvious but I'm having > trouble > >> > getting the unit tests to run to completion on my laptop and was > hoping > >> > that > >> > someone would be kind enough to point me in the right direction. > >> > > >> > I've cloned the repository from GitHub > >> > (http://git.apache.org/lucene-solr.git) and checked out the latest > >> > commit on > >> > branch_4x. > >> > > >> > commit 6e06247cec1410f32592bfd307c1020b814def06 > >> > > >> > Author: Robert Muir <rm...@apache.org> > >> > > >> > Date: Thu Mar 6 19:54:07 2014 +0000 > >> > > >> > > >> > disable slow solr tests in smoketester > >> > > >> > > >> > > >> > git-svn-id: > >> > > https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1575025 > >> > 13f79535-47bb-0310-9956-ffa450edef68 > >> > > >> > > >> > Executing "ant clean test" from the top level directory of the project > >> > shows > >> > the tests running but they seems to get stuck in loop with some > stalled > >> > heartbeat messages. If I run the tests directly from lucene/ then they > >> > complete successfully after about 10 minutes. > >> > > >> > I'm using Java 6 under OS X (10.9.2). > >> > > >> > $ java -version > >> > > >> > java version "1.6.0_65" > >> > > >> > Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) > >> > > >> > Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) > >> > > >> > > >> > My terminal lists repeating stalled heartbeat messages like so: > >> > > >> > HEARTBEAT J2 PID(20104@onyx.local): 2014-03-06T16:53:35, stalled for > >> > 2111s > >> > at: HdfsLockFactoryTest.testBasic > >> > > >> > HEARTBEAT J0 PID(20106@onyx.local): 2014-03-06T16:53:47, stalled for > >> > 2108s > >> > at: TestSurroundQueryParser.testQueryParser > >> > > >> > HEARTBEAT J1 PID(20103@onyx.local): 2014-03-06T16:54:11, stalled for > >> > 2167s > >> > at: TestRecoveryHdfs.testBuffering > >> > > >> > HEARTBEAT J3 PID(20105@onyx.local): 2014-03-06T16:54:23, stalled for > >> > 2165s > >> > at: HdfsDirectoryTest.testEOF > >> > > >> > > >> > My machine does have 3 java processes chewing CPU, see attached jstack > >> > dumps > >> > for more information. > >> > > >> > Should I expect the tests to complete on my platform? Do I need to > >> > specify > >> > any special flags to give them more memory or to avoid any bad apples? > >> > > >> > Thanks in advance, > >> > > >> > --Terry > >> > > >> > > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > >> > For additional commands, e-mail: dev-h...@lucene.apache.org > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > >> For additional commands, e-mail: dev-h...@lucene.apache.org > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > >