Will Berkeley has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/10548


Change subject: [WIP] KUDU-2242 Wait for NTP synchronization on startup
......................................................................

[WIP] KUDU-2242 Wait for NTP synchronization on startup

Sometimes it takes a little while for the clock to be synchronized when
a machine first starts up. Occasionally, this causes Kudu to fail to
start when the host starts up. This patch allows Kudu to wait for
the system clock to become synchronized when using NTP by using
either the 'ntp-wait' or the 'chronyc waitsync' utilities. The amount
of time to wait is controlled by a new flag
--ntp_initial_sync_wait_secs, which defaults to 60. In the common case
when the clock is synchronized when Kudu starts, Kudu does not wait (and
does not incur the cost of waiting on a subprocess). Waiting can be
disabled by setting the new flag to 0.

This is hard to test with a unit test, so I manually tested as follows:
TODO

Change-Id: I6082c5d35ed0d230d91c61734e7b5a351e50933b
---
M src/kudu/clock/system_ntp.cc
1 file changed, 44 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/48/10548/1
--
To view, visit http://gerrit.cloudera.org:8080/10548
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6082c5d35ed0d230d91c61734e7b5a351e50933b
Gerrit-Change-Number: 10548
Gerrit-PatchSet: 1
Gerrit-Owner: Will Berkeley <[email protected]>

Reply via email to