You should definitely be able to build and run all tests on a mac. There are some known problems with certain distributed tests related to timeouts etc.
Solr's tests will randomly enable SSL and when that happens Solr will reject a call made using HTTP. This is what is happening according to that error message. However, it is all taken care of by the test harness and I've never personally seen that particular error message. Can you look for a log line which says "Randomized ssl (true) and clientAuth (false)" or similar in the log of the test that failed? We detect Mac OS X and disable the clientAuth for tests but perhaps the detection isn't working here? Also, please open a Jira issue for each such failure and attach the logs. On Fri, Apr 17, 2015 at 10:00 PM, Gus Heck <[email protected]> wrote: > Is it expected that one should be able to build the whole project (ant > test at top level) on a macbook pro (circa 2012, ssd, OS X 10.9.1, java > 1.8.0_20)? > > I've attempted it about a dozen times, sometimes updating, sometimes > repeating on the same revision. I've never had success and generally 1-5 > tests fail, with no single test failing consistently. This happens on the > 5_1 branch and I just switched to 5x to see if it made a difference and it > happens there too. (running a second time now) > > Is this expected? > > I've seen this message a number of times: > [junit4] > Throwable #1: > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error > from server at https://127.0.0.1:53208//collection1: > org.apache.solr.client.solrj.SolrServerException: > java.lang.IllegalStateException: Scheme 'http' not registered. > > I also notice that the word "Distributed" is common in failing test names, > but I have seen other failures on occasion (possibly real?) Here's the > output of the one that just finished as I was typing... > > [junit4] Tests with failures: > [junit4] - > org.apache.solr.handler.component.DistributedFacetPivotLongTailTest.test > [junit4] - > org.apache.solr.handler.component.DistributedQueryComponentCustomSortTest.test > [junit4] - org.apache.solr.DistributedIntervalFacetingTest.test > [junit4] > [junit4] > [junit4] JVM J0: 0.89 .. 1000.84 = 999.95s > [junit4] JVM J1: 0.89 .. 1000.77 = 999.88s > [junit4] JVM J2: 0.89 .. 1000.86 = 999.97s > [junit4] JVM J3: 0.89 .. 1000.73 = 999.84s > [junit4] Execution time total: 16 minutes 41 seconds > [junit4] Tests summary: 483 suites, 1916 tests, 3 errors, 37 ignored > (21 assumptions) > > BUILD FAILED > /Users/gus/projects/solr/solr51/branch_5x/build.xml:61: The following > error occurred while executing this line: > /Users/gus/projects/solr/solr51/branch_5x/extra-targets.xml:39: The > following error occurred while executing this line: > /Users/gus/projects/solr/solr51/branch_5x/solr/build.xml:229: The > following error occurred while executing this line: > /Users/gus/projects/solr/solr51/branch_5x/solr/common-build.xml:511: The > following error occurred while executing this line: > /Users/gus/projects/solr/solr51/branch_5x/lucene/common-build.xml:1434: > The following error occurred while executing this line: > /Users/gus/projects/solr/solr51/branch_5x/lucene/common-build.xml:991: > There were test failures: 483 suites, 1916 tests, 3 errors, 37 ignored (21 > assumptions) > > Total time: 29 minutes 44 seconds > > -Gus > -- Regards, Shalin Shekhar Mangar.
