[infinispan-issues] [JBoss JIRA] (ISPN-8261) OSGi integration tests can leak the Karaf process

Dan Berindei (JIRA) issues at jboss.org
Fri Sep 8 02:35:00 EDT 2017


    [ https://issues.jboss.org/browse/ISPN-8261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460595#comment-13460595 ] 

Dan Berindei commented on ISPN-8261:
------------------------------------

Maven Surefire should replace {{System.in}} to prevent this for happening, as I've commented on [SUREFIRE-1374|https://issues.apache.org/jira/browse/SUREFIRE-1374], but we can also extend the {{PaxExam}} test runner and replace {{System.in}} ourselves.

> OSGi integration tests can leak the Karaf process
> -------------------------------------------------
>
>                 Key: ISPN-8261
>                 URL: https://issues.jboss.org/browse/ISPN-8261
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Test Suite - Server
>    Affects Versions: 9.1.0.Final
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>              Labels: testsuite_stability
>             Fix For: 9.1.1.Final
>
>
> {{pax-exam-container-karaf}}'s {{InternalRunner.createShutdownHook}} creates a thread that continuously reads from {{System.in}} and pumps that into the Karaf process's stdin. That can break the communication between the surefire master and fork processes, and that can make the fork shutdown without first stopping the container process.
> {noformat}
> [SUREFIRE] std/in stream corrupted
> java.io.IOException: Command BYE_ACK unexpectedly read Void data with length 4.
>         at org.apache.maven.surefire.booter.MasterProcessCommand.decode(MasterProcessCommand.java:130)
>         at org.apache.maven.surefire.booter.CommandReader$CommandRunnable.run(CommandReader.java:386)
>         at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list