Skip to content

Commit

Permalink
HBASE-28254 Flaky test: TestTableShell (apache#5590)
Browse files Browse the repository at this point in the history
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 <wchevreuil@apache.org>
Signed-off-by: Nihal Jain <nihaljain@apache.org>
Signed-off-by: Balazs Meszaros <meszibalu@apache.org>
  • Loading branch information
anmolnar authored and kadirozde committed Jan 5, 2024
1 parent fdf29bb commit 9815c99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hbase-shell/src/test/ruby/hbase/table_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,15 @@ def teardown
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 = {}
Expand Down

0 comments on commit 9815c99

Please sign in to comment.