You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For java processes with very long classpath options (such as those in the kafka command line tools), the full command is truncated in the process list, which makes the ps ax | grep {name} strategy ineffective. A more reliable option might be to use jps. I also noticed that kill_process currently only works for java processes. It might be better to make kill_process generic and include a java-specific kill_java_process so that ducktape can work with non-java processes.
The text was updated successfully, but these errors were encountered:
Both of these are reasonable. This has come up a couple of times recently and the better solution is to just move services over to using pid files. I think the existing approach was mainly based off of the kafka bin scripts which use the janky ps + grep approach.
For java processes with very long classpath options (such as those in the kafka command line tools), the full command is truncated in the process list, which makes the
ps ax | grep {name}
strategy ineffective. A more reliable option might be to usejps
. I also noticed thatkill_process
currently only works for java processes. It might be better to makekill_process
generic and include a java-specifickill_java_process
so that ducktape can work with non-java processes.The text was updated successfully, but these errors were encountered: