hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zg...@apache.org
Subject [hbase] 86/133: HBASE-15903 Delete Object - addnedum moves misplaced sleep
Date Tue, 12 Mar 2019 12:46:14 GMT
This is an automated email from the ASF dual-hosted git repository.

zghao pushed a commit to branch HBASE-14850
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 99b1240e25b156b16ca653c45ea8e1b2fddb215f
Author: tedyu <yuzhihong@gmail.com>
AuthorDate: Thu Jun 1 17:13:03 2017 -0700

    HBASE-15903 Delete Object - addnedum moves misplaced sleep
---
 hbase-native-client/core/client-test.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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"));


Mime
View raw message