Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-15499

Fix the flaky DeleteSegmentsDueToLogStartOffsetBreachTest

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.6.0
    • None
    • None

    Description

      Flaky test failure is reported in https://github.com/apache/kafka/pull/14330#issuecomment-1717195473

      java.lang.AssertionError: [BrokerId=0] The base offset of the first log segment of topicA-0 in the log directory is 7 which is smaller than the expected offset 8. The directory of topicA-0 is made of the following files: leader-epoch-checkpoint
      00000000000000000009.timeindex
      remote_log_snapshot
      00000000000000000009.index
      00000000000000000007.timeindex
      00000000000000000007.index
      00000000000000000007.snapshot
      00000000000000000005.snapshot
      00000000000000000009.log
      partition.metadata
      00000000000000000009.snapshot
      00000000000000000007.log
      	at org.apache.kafka.tiered.storage.utils.BrokerLocalStorage.waitForOffset(BrokerLocalStorage.java:118)
      	at org.apache.kafka.tiered.storage.utils.BrokerLocalStorage.waitForEarliestLocalOffset(BrokerLocalStorage.java:77)
      	at org.apache.kafka.tiered.storage.actions.ProduceAction.doExecute(ProduceAction.java:121)
      	at org.apache.kafka.tiered.storage.TieredStorageTestAction.execute(TieredStorageTestAction.java:25)
      	at org.apache.kafka.tiered.storage.TieredStorageTestHarness.executeTieredStorageTest(TieredStorageTestHarness.java:177)

      Attachments

        Issue Links

          Activity

            People

              ckamal Kamal Chandraprakash
              ckamal Kamal Chandraprakash
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: