Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2054 Fix Kafka transient unit test failures
  3. KAFKA-2415

Transient failure in LogRecoveryTest.testHWCheckpointWithFailuresMultipleLogSegments

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0.0
    • Component/s: None
    • Labels:
      None

      Description

      See transient failure in the test with the following error message.
      kafka.server.LogRecoveryTest > testHWCheckpointWithFailuresMultipleLogSegments FAILED
      java.util.NoSuchElementException: None.get
      at scala.None$.get(Option.scala:313)
      at scala.None$.get(Option.scala:311)
      at kafka.server.LogRecoveryTest$$anonfun$testHWCheckpointWithFailuresMultipleLogSegments$8.apply$mcZ$sp(LogRecoveryTest.scala:215)
      at kafka.utils.TestUtils$.waitUntilTrue(TestUtils.scala:616)
      at kafka.server.LogRecoveryTest.testHWCheckpointWithFailuresMultipleLogSegments(LogRecoveryTest.scala:214)

      It looks the fix is to wait for the new broker to create the replica before check its HW.

        Attachments

          Activity

            People

            • Assignee:
              becket_qin Jiangjie Qin
              Reporter:
              becket_qin Jiangjie Qin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: