My understanding is : Before query starts/After query finishes, Foreman will put/delete running query profiles in zookeeper.
However, if zookeeper is down before the put/delete is successful, Drill would be blocked at the put/delete operation. See https://issues.apache.org/jira/browse/DRILL-3751 I think it is not quite right to let Drill just wait for Zookeeper to respond. Does it make sense to use "time-out" here?
