mesos-go executor driver calls driver.stop() after invoking shutdown of executor
// this is from mesos-go executor driver driver.withExecutor(func(e Executor) { e.Shutdown(driver) }) driver.stop() So executor should print log firstly then exit since driver stop happen after invoking shutdown. Will try to enable GLOG and come back to you. Many thanks, Jiamin > On Jul 18, 2017, at 5:24 PM, Vinod Kone <vinodk...@apache.org> wrote: > > On Tue, Jul 18, 2017 at 2:11 PM, Zhu Jiamin <jiamin.zhu...@gmail.com> wrote: > >> 2017/07/18 20:49:19 Stop driver >> > > Am I reading this correctly that mesos-go executor calls `stop()` on the > driver? Do you know if it calls it when it gets a `shutdown()`? If yes, > that would explain the behavior. > > Looking at the driver code, looks like when it gets a shutdown message from > the agent the shutdown grace period should be respected. The only way a > driver would terminate early is if an executor called `stop()` or `abort()` > in the interim. > > Is there any way you could set `GLOG_v=1` in the environment of your > executor so that driver logs get output? That would make debugging this > much easier.