kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpe...@apache.org
Subject [3/6] kudu git commit: fix warning in stop_tablet-itest
Date Mon, 27 Nov 2017 06:16:27 GMT
fix warning in stop_tablet-itest

This patch fixes the WARN_UNUSED_RESULT() warning logged by
stop_tablet-itest.

Change-Id: I37f3d438b3a355e18012be6ce277256919fbd2df
Reviewed-on: http://gerrit.cloudera.org:8080/8634
Reviewed-by: Mike Percy <mpercy@apache.org>
Tested-by: Andrew Wong <awong@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/b3904330
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/b3904330
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/b3904330

Branch: refs/heads/master
Commit: b3904330ac84373ec4564d165a32e64273cee841
Parents: 1c74247
Author: Andrew Wong <awong@cloudera.com>
Authored: Wed Nov 22 10:14:33 2017 -0800
Committer: Andrew Wong <awong@cloudera.com>
Committed: Thu Nov 23 02:38:58 2017 +0000

----------------------------------------------------------------------
 src/kudu/integration-tests/stop_tablet-itest.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/b3904330/src/kudu/integration-tests/stop_tablet-itest.cc
----------------------------------------------------------------------
diff --git a/src/kudu/integration-tests/stop_tablet-itest.cc b/src/kudu/integration-tests/stop_tablet-itest.cc
index 04b57b6..dfcf836 100644
--- a/src/kudu/integration-tests/stop_tablet-itest.cc
+++ b/src/kudu/integration-tests/stop_tablet-itest.cc
@@ -192,8 +192,8 @@ TEST_P(StopTabletITest, TestSingleStoppedTabletsDontScan) {
   // tablet has been stopped, it shouldn't return anything.
   // Even a fault tolerant scanner will not be able to do anything.
   KuduScanner scanner(table.get());
-  scanner.SetTimeoutMillis(500);
-  scanner.SetFaultTolerant();
+  ASSERT_OK(scanner.SetTimeoutMillis(500));
+  ASSERT_OK(scanner.SetFaultTolerant());
   Status s = scanner.Open();
   LOG(INFO) << "Scanner opened with status: " << s.ToString();
   ASSERT_TRUE(s.IsTimedOut()) << s.ToString();


Mime
View raw message