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


Change subject: WIP [tests] scenario to repro off-by-one error in TestWorkload
......................................................................

WIP [tests] scenario to repro off-by-one error in TestWorkload

This patch is basically patch from https://gerrit.cloudera.org/#/c/9255/
with additional updates.

To repro, compile in RELEASE configuration and run locally or
using dist-test:

KUDU_ALLOW_SLOW_TESTS=1 ./bin/raft_consensus_nonvoter-itest \
  --gtest_filter='*RemoveReplaceInCycle*'

The failure rate at dist-test is about 1/16.  The relevant failures
look like the following (two cases at least):

--------

src/kudu/integration-tests/cluster_verifier.cc:131: Failure
Failed
Bad status: Corruption: row count 31950 is not exactly expected value 31949
src/kudu/integration-tests/raft_consensus_nonvoter-itest.cc:2045: Failure
Expected: v.CheckRowCount(workload.table_name(), ClusterVerifier::EXACTLY, 
workload.rows_inserted()) doesn't generate new fatal failures in the current 
thread.
Actual: it does.

--------

F0210 04:28:10.156322  5051 test_workload.cc:236] Check failed: row_count >= 
expected_row_count (31049 vs. 31050)
*** Check failure stack trace: ***
    @           0x9426bd  google::LogMessage::Fail() at 
thirdparty/src/glog-0.3.5/src/logging.cc:1488
    @           0x94457d  google::LogMessage::SendToLog() at 
thirdparty/src/glog-0.3.5/src/logging.cc:1442
    @           0x9421f9  google::LogMessage::Flush() at 
thirdparty/src/glog-0.3.5/src/logging.cc:1312
    @           0x94501f  google::LogMessageFatal::~LogMessageFatal() at 
thirdparty/src/glog-0.3.5/src/logging.cc:2024
    @           0x930339  kudu::TestWorkload::ReadThread() at 
/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../include/c++/4.9.2/tr1/shared_ptr.h:340
    @     0x7f22ba943a60  (unknown) at ??:0
    @     0x7f22bbd8b184  start_thread at ??:0
    @     0x7f22ba3b0ffd  clone at ??:0
    @              (nil)  (unknown)

--------

An example run at dist-test:
  http://dist-test.cloudera.org//job?job_id=aserbin.1518236014.105889

Change-Id: I60666b8b05dce8dd13fcdee6408c0930915ba0c1
---
M src/kudu/integration-tests/cluster_verifier.h
M src/kudu/integration-tests/raft_consensus_nonvoter-itest.cc
M src/kudu/tablet/tablet.cc
M src/kudu/tserver/ts_tablet_manager.cc
4 files changed, 177 insertions(+), 11 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I60666b8b05dce8dd13fcdee6408c0930915ba0c1
Gerrit-Change-Number: 9277
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <aser...@cloudera.com>

Reply via email to