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

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


The following commit(s) were added to refs/heads/master by this push:
     new 16eae97  KUDU-2806: Deflake testForceIncrementalBackup
16eae97 is described below

commit 16eae97117f230b25638cf66544318fce25a19ef
Author: Grant Henke <[email protected]>
AuthorDate: Tue May 7 09:12:55 2019 -0500

    KUDU-2806: Deflake testForceIncrementalBackup
    
    This deflakes testForceIncrementalBackup by waiting
    1 ms before setting the beforeMs. This is important
    because backup times are at ms granuarity even though
    snapshot times are at microsecond/logic granularity.
    
    Change-Id: Icaab7ff856e46860f6d4ee999b05afd783e01443
    Reviewed-on: http://gerrit.cloudera.org:8080/13262
    Tested-by: Grant Henke <[email protected]>
    Reviewed-by: Will Berkeley <[email protected]>
---
 .../src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala           | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/java/kudu-backup/src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala 
b/java/kudu-backup/src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala
index 0c837c0..5c769ce 100644
--- 
a/java/kudu-backup/src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala
+++ 
b/java/kudu-backup/src/test/scala/org/apache/kudu/backup/TestKuduBackup.scala
@@ -129,6 +129,7 @@ class TestKuduBackup extends KuduTestSuite {
   @Test
   def testForceIncrementalBackup() {
     insertRows(table, 100) // Insert data into the default test table.
+    Thread.sleep(1) // Ensure the previous insert is before beforeMs.
     // Set beforeMs so we can force an incremental at this time.
     val beforeMs = System.currentTimeMillis()
     Thread.sleep(1) // Ensure the next insert is after beforeMs.

Reply via email to