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

Server not always stopped properly with the IBM JDK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.2.0.Beta1
    • 7.2.0.Alpha1
    • Test Suite
    • None

    Description

      Because of WFLY-3549, the Infinispan/Wildfly server doesn't always stop properly and it needs to be killed with kill -9.

      AFAICT Arquillian doesn't always handle this when there is a startup problem, because it uses Process.destroy() instead of Process.destroyForcefully(), and I believe it doesn't go through InfinispanServerKillProcessor. However, the server seems to be properly started in this case.

      We have two Ant scripts that kill any running server: kill-jbossas.xml in server/integration/testsuite and build.xml in integrationtests/as-integration-client. However, the IBM JDK installed on the CI agent machines doesn't have a jps command, so the script doesn't work:

      [04:47:58]E:		 [org.infinispan:infinispan-as-module-client-integrationtests] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (infinispan-server-shutdown) on project infinispan-as-module-client-integrationtests: An Ant BuildException has occured: The following error occurred while executing this line:
      /mnt/persistent_storage/cloud-user/ispn/buildAgent/work/64255532d1f9a010/integrationtests/as-integration-client/build.xml:55: Execute failed: java.io.IOException: Cannot run program "/opt/ibm/java-x86_64-71/bin/jps" (in directory "/mnt/persistent_storage/cloud-user/ispn/buildAgent/work/64255532d1f9a010/integrationtests/as-integration-client"): error=2, No such file or directory
      around Ant part ...<ant antfile="build.xml" target="kill_server"/>... @ 4:50 in /mnt/persistent_storage/cloud-user/ispn/buildAgent/work/64255532d1f9a010/integrationtests/as-integration-client/target/antrun/build-main.xml
      

      I suggest using ps -o pid=,cmd= -Cjava to check for running processes instead of jps.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: