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 2025/02/03 21:49:54 UTC

[kudu-CR] KUDU-3596 fix one of the brittle assertions

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


Change subject: KUDU-3596 fix one of the brittle assertions
......................................................................

KUDU-3596 fix one of the brittle assertions

The TsTabletManagerITest.TestTableStats scenario is very brittle due the
assumptions on various operations' timings.  This patch addresses one
of them, replacing SleepFor(...) with more robust
InternalMiniCluster::WaitForTabletServerCount() condition.

The motivation for this changelist was following assertion in dist-test
failure [1] from a built-and-test pre-commit build for unrelated patch:

  src/kudu/integration-tests/ts_tablet_manager-itest.cc:785: Failure
  Expected equality of these values:
    live_row_count
      Which is: 434
    table_info->GetMetrics()->live_row_count->value()
      Which is: 0
  ...
  src/kudu/integration-tests/ts_tablet_manager-itest.cc:895: Failure
  Expected: CheckStats(kRowsCount) doesn't generate new fatal failures in the current thread.
    Actual: it does.

[1] http://dist-test.cloudera.org/job?job_id=jenkins-slave.1738567082.3715745

Change-Id: Id8581ecc0368ca17c14bcfc578f3896c9515b819
---
M src/kudu/integration-tests/ts_tablet_manager-itest.cc
1 file changed, 5 insertions(+), 4 deletions(-)



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

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

[kudu-CR] KUDU-3596 fix one of the brittle assertions

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

Change subject: KUDU-3596 fix one of the brittle assertions
......................................................................


Patch Set 1:

Build Started http://jenkins.kudu.apache.org/job/pre_commit/1017/


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id8581ecc0368ca17c14bcfc578f3896c9515b819
Gerrit-Change-Number: 22444
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Mon, 03 Feb 2025 21:50:02 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3596 fix one of the brittle assertions

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

Change subject: KUDU-3596 fix one of the brittle assertions
......................................................................


Patch Set 1: Verified+1

Build Successful 

http://jenkins.kudu.apache.org/job/pre_commit/1017/ : SUCCESS


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id8581ecc0368ca17c14bcfc578f3896c9515b819
Gerrit-Change-Number: 22444
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Ádám Bakai <ab...@cloudera.com>
Gerrit-Comment-Date: Mon, 03 Feb 2025 22:47:27 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3596 fix one of the brittle assertions

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

Change subject: KUDU-3596 fix one of the brittle assertions
......................................................................


Patch Set 1: Code-Review+2


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Id8581ecc0368ca17c14bcfc578f3896c9515b819
Gerrit-Change-Number: 22444
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Ádám Bakai <ab...@cloudera.com>
Gerrit-Comment-Date: Tue, 04 Feb 2025 03:22:25 +0000
Gerrit-HasComments: No

[kudu-CR] KUDU-3596 fix one of the brittle assertions

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

Change subject: KUDU-3596 fix one of the brittle assertions
......................................................................

KUDU-3596 fix one of the brittle assertions

The TsTabletManagerITest.TestTableStats scenario is very brittle due the
assumptions on various operations' timings.  This patch addresses one
of them, replacing SleepFor(...) with more robust
InternalMiniCluster::WaitForTabletServerCount() condition.

The motivation for this changelist was following assertion in dist-test
failure [1] from a built-and-test pre-commit build for unrelated patch:

  src/kudu/integration-tests/ts_tablet_manager-itest.cc:785: Failure
  Expected equality of these values:
    live_row_count
      Which is: 434
    table_info->GetMetrics()->live_row_count->value()
      Which is: 0
  ...
  src/kudu/integration-tests/ts_tablet_manager-itest.cc:895: Failure
  Expected: CheckStats(kRowsCount) doesn't generate new fatal failures in the current thread.
    Actual: it does.

[1] http://dist-test.cloudera.org/job?job_id=jenkins-slave.1738567082.3715745

Change-Id: Id8581ecc0368ca17c14bcfc578f3896c9515b819
Reviewed-on: http://gerrit.cloudera.org:8080/22444
Tested-by: Kudu Jenkins
Reviewed-by: Yifan Zhang <ch...@163.com>
---
M src/kudu/integration-tests/ts_tablet_manager-itest.cc
1 file changed, 5 insertions(+), 4 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Yifan Zhang: Looks good to me, approved

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id8581ecc0368ca17c14bcfc578f3896c9515b819
Gerrit-Change-Number: 22444
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)
Gerrit-Reviewer: Yifan Zhang <ch...@163.com>
Gerrit-Reviewer: Ádám Bakai <ab...@cloudera.com>