Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-2545

Fix testBatchOperationTriggeredByBatchSize flakiness

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.5
    • None
    • None

    Description

      testBatchOperationTriggeredByBatchSize FAILED
          java.lang.AssertionError
              at org.junit.Assert.fail(Assert.java:86)
              at org.junit.Assert.assertTrue(Assert.java:41)
              at org.junit.Assert.assertTrue(Assert.java:52)
              at org.apache.samza.table.batching.TestBatchProcessor$TestBatchTriggered.testBatchOperationTriggeredByBatchSize(TestBatchProcessor.java:114) 

      The test uses sleep and expects the future to complete at the end of the sleep duration. It introduces flakiness and results in false negatives.

       

      Attachments

        Issue Links

          Activity

            People

              bharathkk Bharath Kumarasubramanian
              bharathkk Bharath Kumarasubramanian
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m