youtube/vitess — pull request #139 by enisoc (2014-11-04 20:03:28+00:00)
Title: Add OnTermSync for hooks that we should wait for before dying.

@alainjobart @sougou

##### Add OnTermSync for hooks that we should wait for before dying.

Previously, the lameduck period specified both the minimum and maximum
wait duration. We need a way for certain hooks to specify that they are
important enough to wait for even after lameduck expires. The lameduck
period effectively now specifies the minimum wait time, while the new
onterm_timeout specifies the maximum.

##### Upgrade shard rebuild to OnTermSync to give it more time.

Removing ourselves from the serving graph when going down gracefully is
important enough to extend lameduck beyond the minimum specified by the
-lameduck-period flag.