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 2023/08/28 22:54:50 UTC

[kudu-CR] [clock] instantiate 'clock ntp status' first thing in SystemNtp::Init()

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/20433


Change subject: [clock] instantiate 'clock_ntp_status' first thing in SystemNtp::Init()
......................................................................

[clock] instantiate 'clock_ntp_status' first thing in SystemNtp::Init()

This moves the instantiation of the 'clock_ntp_status' metric to come
before various calls that might return an error.  This follows the
semantics of the metrics more closely and also makes the
HybridClockTest.TestNtpDiagnostics test scenario to pass even on
machines where ntp_adjtime() returns an error (e.g., very ancient
Docker versions).

Change-Id: I2a75fc03c7bb625b0e4f15ea7944442a1cfe4b2e
---
M src/kudu/clock/system_ntp.cc
1 file changed, 7 insertions(+), 4 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a75fc03c7bb625b0e4f15ea7944442a1cfe4b2e
Gerrit-Change-Number: 20433
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>

[kudu-CR] [clock] instantiate 'clock ntp status' first thing in SystemNtp::Init()

Posted by "Abhishek Chennaka (Code Review)" <ge...@cloudera.org>.
Abhishek Chennaka has posted comments on this change. ( http://gerrit.cloudera.org:8080/20433 )

Change subject: [clock] instantiate 'clock_ntp_status' first thing in SystemNtp::Init()
......................................................................


Patch Set 1: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/20433
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2a75fc03c7bb625b0e4f15ea7944442a1cfe4b2e
Gerrit-Change-Number: 20433
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Mon, 28 Aug 2023 22:58:31 +0000
Gerrit-HasComments: No

[kudu-CR] [clock] instantiate 'clock ntp status' first thing in SystemNtp::Init()

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/20433 )

Change subject: [clock] instantiate 'clock_ntp_status' first thing in SystemNtp::Init()
......................................................................

[clock] instantiate 'clock_ntp_status' first thing in SystemNtp::Init()

This moves the instantiation of the 'clock_ntp_status' metric to come
before various calls that might return an error.  This follows the
semantics of the metrics more closely and also makes the
HybridClockTest.TestNtpDiagnostics test scenario to pass even on
machines where ntp_adjtime() returns an error (e.g., very ancient
Docker versions).

Change-Id: I2a75fc03c7bb625b0e4f15ea7944442a1cfe4b2e
Reviewed-on: http://gerrit.cloudera.org:8080/20433
Reviewed-by: Abhishek Chennaka <ac...@cloudera.com>
Tested-by: Alexey Serbin <al...@apache.org>
---
M src/kudu/clock/system_ntp.cc
1 file changed, 7 insertions(+), 4 deletions(-)

Approvals:
  Abhishek Chennaka: Looks good to me, approved
  Alexey Serbin: Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/20433
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I2a75fc03c7bb625b0e4f15ea7944442a1cfe4b2e
Gerrit-Change-Number: 20433
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR] [clock] instantiate 'clock ntp status' first thing in SystemNtp::Init()

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/20433 )

Change subject: [clock] instantiate 'clock_ntp_status' first thing in SystemNtp::Init()
......................................................................


Patch Set 1: Verified+1

unrelated test failures in
  * AutoIncrementingItest.BootstrapWalsDiverge
  * LeaderRebalancerTest.AddTserver


-- 
To view, visit http://gerrit.cloudera.org:8080/20433
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2a75fc03c7bb625b0e4f15ea7944442a1cfe4b2e
Gerrit-Change-Number: 20433
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Tue, 29 Aug 2023 00:55:19 +0000
Gerrit-HasComments: No

[kudu-CR] [clock] instantiate 'clock ntp status' first thing in SystemNtp::Init()

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has removed a vote on this change.

Change subject: [clock] instantiate 'clock_ntp_status' first thing in SystemNtp::Init()
......................................................................


Removed Verified-1 by Kudu Jenkins (120)
-- 
To view, visit http://gerrit.cloudera.org:8080/20433
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I2a75fc03c7bb625b0e4f15ea7944442a1cfe4b2e
Gerrit-Change-Number: 20433
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)