You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2019/11/26 04:19:46 UTC

[kudu-CR] [tests] use system unsync time source for tests by default

Hello Kudu Jenkins, Adar Dembo, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/14379

to look at the new patch set (#2).

Change subject: [tests] use system_unsync time source for tests by default
......................................................................

[tests] use system_unsync time source for tests by default

This patch switches all KuduTest-derived tests to use 'system_unsync'
time source by default (note that becomes so for test based on both
internal and external mini-clusters).  The rationale is explained below.

Essentially, there is no need to require NTP-synchronized clock for
a generic test derived from KuduTest.  All the participating Kudu
masters and tablet servers (and their sub-components in case of unit
tests) are run at the same node using the same local wallclock.  Using
the same wallclock makes the synchronisation of clocks unnecessary.

The scenarios that verify the functioning of particular Kudu subsystems
when using the 'system' and the 'builtin' clock sources should be put
into a set of dedicated scenarios.  That's partially so even now: the
scenarios which require verification of the built-in NTP client
functionality are separated into a dedicated test set.  However, it's
necessary to add dedicated test scenarios for the 'system' clock source
and add more coverage for the 'built-in' clock source.

That's exactly what follow-up changelists will do, i.e. add dedicated
test scenarios to cover the specific functionality attributed to the use
of the following clock sources:
  * system  : local machine's wallclock clock synchronized with NTP
  * builtin : independently tracked true time by the built-in NTP client

Change-Id: If7edbf884afaa19121aa92a4ce93c8a7eeb2d937
---
M src/kudu/client/client_examples-test.sh
M src/kudu/clock/hybrid_clock-test.cc
M src/kudu/clock/hybrid_clock.cc
M src/kudu/mini-cluster/external_mini_cluster.cc
M src/kudu/mini-cluster/external_mini_cluster.h
M src/kudu/scripts/start_kudu.sh
M src/kudu/util/CMakeLists.txt
M src/kudu/util/test_util.cc
M src/kudu/util/test_util.h
9 files changed, 49 insertions(+), 31 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/79/14379/2
-- 
To view, visit http://gerrit.cloudera.org:8080/14379
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: If7edbf884afaa19121aa92a4ce93c8a7eeb2d937
Gerrit-Change-Number: 14379
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)