Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8261

OSGi integration tests can leak the Karaf process

    XMLWordPrintable

Details

    Description

      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.

      [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)
      

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: