You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Mike Hummel (Jira)" <ji...@apache.org> on 2020/06/13 20:43:00 UTC

[jira] [Commented] (KARAF-6764) Compilation with OpenJDK 11 failed because of Unit tests with JPM

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

Mike Hummel commented on KARAF-6764:
------------------------------------

After debugging the problem it looks like the child process is switching into zombi mode for some reasons. It's a problem in docker containers, search for "docker java defunct"

The process list shows the following:

3100 pts/0 00:00:00 java <defunct>

or with stat:

501 3100 0000000000000100 0000000000000004 0000000000000003 2000000181005ccc Z pts/0 0:00 [java] <defunct>

A solution is to check for status zombi in isRunning().

 

 

> Compilation with OpenJDK 11 failed because of Unit tests with JPM
> -----------------------------------------------------------------
>
>                 Key: KARAF-6764
>                 URL: https://issues.apache.org/jira/browse/KARAF-6764
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.0
>         Environment: user@deploy-mhus:~/karaf$ java --version
>  openjdk 11.0.2 2019-01-15
>  OpenJDK Runtime Environment (build 11.0.2+9-Debian-3bpo91)
>  OpenJDK 64-Bit Server VM (build 11.0.2+9-Debian-3bpo91, mixed mode, sharing)
>  user@deploy-mhus:~/karaf$ uname -a
>  Linux deploy-mhus 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 GNU/Linux
>  user@deploy-mhus:~/karaf$
>  
> Inside a docker container.
>            Reporter: Mike Hummel
>            Priority: Major
>
> JUnit Failed
>  
> [INFO] -------------------------------------------------------
>  [INFO]  T E S T S
>  [INFO] -------------------------------------------------------
>  [INFO] Running org.apache.karaf.jpm.ProcessTest
>  /usr/lib/jvm/java-11-openjdk-amd64/bin/java
>  Executing: "/usr/lib/jvm/java-11-openjdk-amd64/bin/java" -Dprop="key" -classpath /home/user/karaf/instance/target/test-classes/ org.apache.karaf.jpm.MainTest 60000
>  Process: 4398
>  Running: true
>  Destroying
>  Running: true
>  [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.149 s <<< FAILURE! - in org.apache.karaf.jpm.ProcessTest
>  [ERROR] testCreate(org.apache.karaf.jpm.ProcessTest)  Time elapsed: 2.104 s  <<< FAILURE!
>  junit.framework.AssertionFailedError
>  at org.apache.karaf.jpm.ProcessTest.testCreate(ProcessTest.java:57)
> in
> [INFO] Apache Karaf :: Instance :: Core ................... FAILURE [  7.811 s]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)