You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2017/06/02 00:13:08 UTC

hbase git commit: HBASE-15903 Delete Object - addnedum moves misplaced sleep

Repository: hbase
Updated Branches:
  refs/heads/HBASE-14850 69d92d368 -> 20303447c


HBASE-15903 Delete Object - addnedum moves misplaced sleep


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

Branch: refs/heads/HBASE-14850
Commit: 20303447cebf616506d1860e93b45e5023231d2c
Parents: 69d92d3
Author: tedyu <yu...@gmail.com>
Authored: Thu Jun 1 17:13:03 2017 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Thu Jun 1 17:13:03 2017 -0700

----------------------------------------------------------------------
 hbase-native-client/core/client-test.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/20303447/hbase-native-client/core/client-test.cc
----------------------------------------------------------------------
diff --git a/hbase-native-client/core/client-test.cc b/hbase-native-client/core/client-test.cc
index d0791b8..c378f81 100644
--- a/hbase-native-client/core/client-test.cc
+++ b/hbase-native-client/core/client-test.cc
@@ -138,8 +138,8 @@ TEST_F(ClientTest, PutGetDelete) {
   table->Put(Put{row}.AddColumn("d", "1", "value1"));
   // Put two values for column "extra"
   table->Put(Put{row}.AddColumn("d", "extra", "1st val extra"));
-  table->Put(Put{row}.AddColumn("d", "extra", valExtra));
   usleep(1000);
+  table->Put(Put{row}.AddColumn("d", "extra", valExtra));
   table->Put(Put{row}.AddColumn("d", "ext", valExt));
 
   // Perform the Get
@@ -153,6 +153,7 @@ TEST_F(ClientTest, PutGetDelete) {
   EXPECT_EQ(valExtra, *(result->Value("d", "extra")));
   auto cell = *(result->ColumnCells("d", "extra"))[0];
   auto tsExtra = cell.Timestamp();
+  auto tsExt = (*(result->ColumnCells("d", "ext"))[0]).Timestamp();
 
   // delete column "1"
   table->Delete(hbase::Delete{row}.AddColumn("d", "1"));