You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by me...@apache.org on 2023/12/19 20:43:35 UTC

(hbase) branch master updated: HBASE-28254 Flaky test: TestTableShell (#5590)

This is an automated email from the ASF dual-hosted git repository.

meszibalu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f4a4957eee HBASE-28254 Flaky test: TestTableShell (#5590)
8f4a4957eee is described below

commit 8f4a4957eeeff734d134b07fa8c73bba2ad29534
Author: Andor Molnár <an...@cloudera.com>
AuthorDate: Tue Dec 19 21:43:29 2023 +0100

    HBASE-28254 Flaky test: TestTableShell (#5590)
    
    Add some delay (1/1000s) between HBase shell commands in Ruby to avoid two commands ending up with the same version.
    
    Signed-off-by: Wellington Ramos Chevreuil <wc...@apache.org>
    Signed-off-by: Nihal Jain <ni...@apache.org>
    Signed-off-by: Balazs Meszaros <me...@apache.org>
---
 hbase-shell/src/test/ruby/hbase/table_test.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hbase-shell/src/test/ruby/hbase/table_test.rb b/hbase-shell/src/test/ruby/hbase/table_test.rb
index 05b80725efc..8ed6f663dbd 100644
--- a/hbase-shell/src/test/ruby/hbase/table_test.rb
+++ b/hbase-shell/src/test/ruby/hbase/table_test.rb
@@ -681,11 +681,15 @@ module Hbase
       create_test_table(@test_name_raw)
       @test_table = table(@test_name_raw)
 
-      # Instert test data
+      # Insert test data
       @test_table.put(1, "x:a", 1)
+      sleep(1.0/1000.0)
       @test_table.put(2, "x:raw1", 11)
+      sleep(1.0/1000.0)
       @test_table.put(2, "x:raw1", 11)
+      sleep(1.0/1000.0)
       @test_table.put(2, "x:raw1", 11)
+      sleep(1.0/1000.0)
       @test_table.put(2, "x:raw1", 11)
 
       args = {}