[ 
https://issues.apache.org/jira/browse/METRON-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982188#comment-15982188
 ] 

Matt Foley commented on METRON-469:
-----------------------------------

I'm now getting this.  Oddly the tests in question, 
MaasIntegrationTest.testMaaSWithDomain and 
MaasIntegrationTest.testMaaSWithoutDomain, both run fine under IntelliJ 
debugger, but that runs under a VM that may not be Mac OS X.

I allowed it to time out, and the JUnit stack dump states that both tests were 
in the sleep() statement at line 181 when they timed out.  This code looks like:
{code}
    boolean verified = false;
    String errorMessage = "";
    while(!verified) {
      List<ApplicationReport> apps = yarnClient.getApplications();
      if (apps.size() == 0 ) {
        Thread.sleep(10);
        continue;
      }
      ApplicationReport appReport = apps.get(0);
      if(appReport.getHost().equals("N/A")) {
        Thread.sleep(10);                                  //  <=== line 181
        continue;
      }
...
{code}

Here's my metron-deployment/scripts/platform-info.sh output.  I'm running in a 
branch with the metron-stellar extraction, so many things could be broken, but 
like I said they run under the IDE debugger without problem.
{code}
Metron 0.3.1
--
* stellar-mod2
--
commit 03007b73291bd250bace3ced3cec8016c445eb45
Date:   Mon Apr 24 18:04:36 2017 -0400

    Adjusting dependencies, especially in test files and poms.
--
 
metron-stellar/stellar-common/src/test/java/org/apache/metron/stellar/common/DefaultStellarStatefulExecutorTest.java
            | 2 ++
 
metron-stellar/stellar-common/src/test/java/org/apache/metron/stellar/common/StellarTest.java
                                   | 2 ++
 
metron-stellar/stellar-common/src/test/java/org/apache/metron/stellar/dsl/functions/resolver/ClasspathFunctionResolverTest.java
 | 4 +++-
 3 files changed, 7 insertions(+), 1 deletion(-)
--
ansible 2.0.0.2
  config file = 
  configured module search path = Default w/o overrides
--
Vagrant 1.8.6
--
Python 2.7.12
--
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
2015-11-10T08:41:47-08:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"
--
Darwin HW11768.local 15.6.0 Darwin Kernel Version 15.6.0: Fri Feb 17 10:21:18 
PST 2017; root:xnu-3248.60.11.4.1~1/RELEASE_X86_64 x86_64
--
Total System Memory = 16384 MB
Processor Model: Intel(R) Core(TM) i7-4870HQ CPU 
Processor Speed: 2.50GHz
Total Physical Processors: 4
Total cores: 4
Disk information:
/dev/disk1                         465Gi  360Gi  105Gi    78%  94395145  
27418395   77%   /
/dev/disk2s2                       1.8Ti  1.4Ti  438Gi    77% 373567643 
114718809   77%   /Volumes/My Book
{code}


> Can't build from parent with tests enabled
> ------------------------------------------
>
>                 Key: METRON-469
>                 URL: https://issues.apache.org/jira/browse/METRON-469
>             Project: Metron
>          Issue Type: Bug
>         Environment: Mac, Java 8 on command line, also Eclipse Neon
>            Reporter: Daniel Jue
>            Priority: Critical
>
> **from Master branch**
> When running mvn clean install -U from the top level pom, I consistently get 
> timeouts (leading to failed tests) for integration tests under the 
> maas-common module.
> Note: adding -DskipTests=true will build successfully.
> How to recreate the bug:
> > mvn clean install -U
> or select 
> Run As -> mvn install in Eclipse on the top level project.
> Tests in error:
>   MaasIntegrationTest.setup:79->setupInternal:103 » YarnRuntime 
> java.io.IOExcept...
>   MaasIntegrationTest.setup:79->setupInternal:103 » YarnRuntime 
> java.io.IOExcept...
> Stack traces:



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to