You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by vishal ghugare <gh...@gmail.com> on 2018/10/15 17:00:43 UTC

Solr 7.4.0 : Question related to Stalling of unit tests

Hello solr-users,

I have built Solr 7.4.0 with upgraded version (25.0-jre/26.0-jre) of guava
dependency.
When unit tests are run against solr with guava 25.0-jre or 26.0-jre, some
of the unit tests stall indefinitely and the testing never finishes up.

For example, here HdfsNNFailoverTest stall indefinitely. Log excerpts for
unit test run with guava 25.0-jre:

---------------

13:54:39.392 [QUIET] [system.out]    [junit4] HEARTBEAT J0
PID(258@8471261c0ae9): 2018-10-12T13:54:39, stalled for 70.6s at:
HdfsNNFailoverTest (suite)

13:55:39.394 [QUIET] [system.out]    [junit4] HEARTBEAT J0
PID(258@8471261c0ae9): 2018-10-12T13:55:39, stalled for  131s at:
HdfsNNFailoverTest (suite)

13:56:39.395 [QUIET] [system.out]    [junit4] HEARTBEAT J0
PID(258@8471261c0ae9): 2018-10-12T13:56:39, stalled for  191s at:
HdfsNNFailoverTest (suite)

13:57:39.396 [QUIET] [system.out]    [junit4] HEARTBEAT J0
PID(258@8471261c0ae9): 2018-10-12T13:57:39, stalled for  251s at:
HdfsNNFailoverTest (suite)

13:58:39.398 [QUIET] [system.out]    [junit4] HEARTBEAT J0
PID(258@8471261c0ae9): 2018-10-12T13:58:39, stalled for  311s at:
HdfsNNFailoverTest (suite)

13:59:39.399 [QUIET] [system.out]    [junit4] HEARTBEAT J0
PID(258@8471261c0ae9): 2018-10-12T13:59:39, stalled for  371s at:
HdfsNNFailoverTest (suite)

---------------

Appreciate if anyone could help/guide to avoid this unit test delay/stall.

For more information, please see SOLR-12869
<https://issues.apache.org/jira/browse/SOLR-12869>.

Thank you!

-Vishal

Re: Solr 7.4.0 : Question related to Stalling of unit tests

Posted by Shawn Heisey <ap...@elyograg.org>.
On 10/15/2018 11:00 AM, vishal ghugare wrote:
> I have built Solr 7.4.0 with upgraded version (25.0-jre/26.0-jre) of guava
> dependency.
> When unit tests are run against solr with guava 25.0-jre or 26.0-jre, some
> of the unit tests stall indefinitely and the testing never finishes up.
>
> For example, here HdfsNNFailoverTest stall indefinitely. Log excerpts for
> unit test run with guava 25.0-jre:

See this issue:

https://issues.apache.org/jira/browse/SOLR-11763

There are some minor code issues in Solr itself when upgrading Guava to 
current versions, but the biggest problem is in Solr's HDFS dependency.  
Hadoop is still depending on very old Guava versions.

If you are NOT using the HDFS support in Solr, and you fix the minor 
code issues in Solr itself, then it is very likely that you can use the 
Solr version that you have built.  But until Hadoop fixes their 
compatibility issues with later Guava versions, I'm afraid that you will 
see HDFS test failures, and there's nothing that can be done in Solr 
code to fix them.

Thanks,
Shawn