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

alterReplicaLogDirs failed even if responded with none error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.7.0
    • None
    • None
    • None

    Description

      When firing alterLogDirRequest, it gets error NONE result. But actually, the alterLogDir never happened with these errors:

      [2024-05-14 16:48:50,796] INFO [ReplicaAlterLogDirsThread-1]: Partition topicB-0 has an older epoch (0) than the current leader. Will await the new LeaderAndIsr state before resuming fetching. (kafka.server.ReplicaAlterLogDirsThread:66)
      [2024-05-14 16:48:50,796] WARN [ReplicaAlterLogDirsThread-1]: Partition topicB-0 marked as failed (kafka.server.ReplicaAlterLogDirsThread:70)
      

      Note: It's under KRaft mode. So the log with LeaderAndIsr is wrong.
      This can be reproduced in this branch and running this test:

      ./gradlew cleanTest storage:test --tests org.apache.kafka.tiered.storage.integration.AlterLogDirTest
      

      The complete logs can be found here: https://gist.github.com/showuon/b16cdb05a125a7c445cc6e377a2b7923

      Attachments

        Activity

          People

            Unassigned Unassigned
            showuon Luke Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: