|
[
Permlink
| « Hide
]
Devaraj Das added a comment - 29/Dec/08 02:39 PM
Attaching a patch for review. I am still tuning some parameters in the tests but the patch can be reviewed as such.
I only started looking through this, a nit: we shouldn't do 'ps | grep | ... ' etc. for suspend/resume. Rather we should use the pid file to get the daemon's pid.
Arun, the PID file is looked at if it exists. I have the 'ps | grep | etc' to take care of the case where the test is run using HOD (as is normally the case in Yahoo!). In that case, the PID file is not written. Also, note that stopping/resuming daemons through 'ps | grep | etc' will stop/resume only those processes that had been launched by the user running the test.
In the minimum, we should do our best and ensure that we are sending signals to the right process. For this, we might want to grep process list for "java" AND the full class name, instead of just searching for the daemons' names. We are limiting to one user anyways, and further we are just stopping and continuing the process, and not really destroying them.
Gone throught the patch, a few code comments:
Attached patch with the concerns addressed
Few comments:
Sorry about that, log4j jar was missing on my classpath. It actually DOES print the job progress. Attached is the updated patch.
Edit release note for publication; tests not user-facing.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||