samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Maes <>
Subject Re: Review Request 46546: SAMZA-940 TestProcessJob.testProcessJobKillShouldWork fails occasionally
Date Fri, 22 Apr 2016 00:08:58 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated April 22, 2016, 12:08 a.m.)

Review request for samza, Navina Ramesh, Jagadish Venkatraman, Xinyu Liu, and Yi Pan (Data

Bugs: SAMZA-940

Repository: samza

Description (updated)

SAMZA-940 TestProcessJob.testProcessJobKillShouldWork fails occasionally

It looks like this has been a problem since Java 8. Java 8 changed the meaning of Process.destroy().
It used to forcibly destroy the process, but now it is a "normal termination" and destroyForcibly()
is the method that force-kills the process. 

Since destroyForcibly() was only introduced in Java 8, the best solution I found was to use
reflection to call that method if it exists. 


Java 9 docs are a bit clearer


  samza-core/src/main/java/org/apache/samza/job/util/ PRE-CREATION 
  samza-core/src/main/scala/org/apache/samza/job/local/ProcessJob.scala 66618165d27aa916238cc86b27631c5db3435c6a


Testing (updated)

Ran the test a number of times and haven't seen the assertion fail.


Jake Maes

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message