On 1.9.2014 09:56, Galder Zamarreño wrote: > Hi guys, > > Thanks a lot for your feedback on this. > > Having looked closer, the log message says: > >> [echo] Killing Infinispan server with PID - 3658 29739 > And the pattern of how that log message gets computed is: > >> <echo message="Killing Infinispan server with PID - ${pid}”/> > So, according to that, ${pid} is “3658 29739” which looks wrong. > > Not sure what that means, whether there are two processes running and both > should be killed, or the way the PID is computed is buggy. > > InfinispanServerKillProcessor has a slightly different way to compute the > PID, maybe it does it correctly? WDYT?
Hey Galder, I think there are two processes running and so this should be correct. The "kill" command can be passed more processes to kill at once. And I think this has mostly been working for us. I could not reproduce the issue on my localhost. But maybe it makes sense to change the way the processes are searched. Otherwise I don't know what to do about that:) Martin > > Cheers, > > On 18 Aug 2014, at 15:28, Martin Gencur <mgen...@redhat.com> wrote: > >> Hi Galder, >> I haven't seen this before. I thought the ant-based "kill" command was safe >> and reliable. It's hard to say what went wrong without further logs. Whether >> the kill command failed or whether there were other processes that were not >> found by the jps command. >> >> We could also try maven-exec-plugin and call the Unix "kill" command from >> it, instead of using the InfinispanServerKillProcessor. >> >> Martin >> >> >> On 12.8.2014 10:15, Jakub Markos wrote: >>> Hi, >>> >>> I looked at it and I don't think using InfinispanServerKillProcessor would >>> be any better, >>> since it still just calls 'kill -9'. The only difference is that it doesn't >>> kill all >>> java processes starting from jboss-modules.jar, but just the one configured >>> for the test. >>> >>> Is it maybe possible that the kill happened, but the port was still hanging? >>> >>> Jakub >>> >>> ----- Original Message ----- >>>> From: "Galder Zamarreño" <gal...@redhat.com> >>>> To: "Jakub Markos" <jmar...@redhat.com>, "Martin Gencur" >>>> <mgen...@redhat.com> >>>> Cc: "infinispan -Dev List" <infinispan-dev@lists.jboss.org> >>>> Sent: Monday, August 4, 2014 12:35:50 PM >>>> Subject: Ant based kill not fully working? Re: ISPN-4567 >>>> >>>> Hi, >>>> >>>> Dan has reported [1]. It appears as if the last server started in >>>> infinispan-as-module-client-integrationtests did not really get killed. >>>> From >>>> what I see, this kill was done via the specific Ant target present in that >>>> Maven module. >>>> >>>> I also remembered recently [2] was added. Maybe we need to get >>>> as-modules/client to be configured with it so that it properly kills >>>> servers? >>>> >>>> What I’m not sure is where we’d put it so that it can be consumed both by >>>> server/integration/testsuite and as-modules/client? The problem is that the >>>> class, as is, brings in arquillian dependency. If we can separate the >>>> arquillian stuff from the actual code, the class itself could maybe go in >>>> commons test source directory? >>>> >>>> @Tristan, thoughts? >>>> >>>> @Jakub, can I assign this to you? >>>> >>>> [1] https://issues.jboss.org/browse/ISPN-4567 >>>> [2] >>>> https://github.com/infinispan/infinispan/blob/master/server/integration/testsuite/src/test/java/org/infinispan/server/test/util/arquillian/extensions/InfinispanServerKillProcessor.java >>>> -- >>>> Galder Zamarreño >>>> gal...@redhat.com >>>> twitter.com/galderz >>>> >>>> > > -- > Galder Zamarreño > gal...@redhat.com > twitter.com/galderz > _______________________________________________ infinispan-dev mailing list infinispan-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/infinispan-dev