[ https://issues.apache.org/jira/browse/KAFKA-16760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846351#comment-17846351 ]
Igor Soarez commented on KAFKA-16760: ------------------------------------- Hey [~showuon] , thanks for sharing this. I'm trying, but have not been able to run your reproducer, is this a race / flaky test that needs multiple executions until we run into an error? {code:java} ~ak trunk ⇣ ❯ git remote add showuon g...@github.com:showuon/kafka.git ~ak trunk ⇣ ❯ git checkout -b alterLogDirTest showuon/alterLogDirTest branch 'alterLogDirTest' set up to track 'showuon/alterLogDirTest'. Switched to a new branch 'alterLogDirTest' ~ak alterLogDirTest ❯ ./gradlew cleanTest storage:test --tests org.apache.kafka.tiered.storage.integration.AlterLogDirTest Starting build with version 3.8.0-SNAPSHOT (commit id 89042888) using Gradle 8.7, Java 17 and Scala 2.13.12 Build properties: maxParallelForks=10, maxScalacThreads=8, maxTestRetries=0> Task :core:processMessages MessageGenerator: processed 2 Kafka message JSON files(s).> Task :raft:processMessages MessageGenerator: processed 1 Kafka message JSON files(s).> Task :storage:processMessages MessageGenerator: processed 4 Kafka message JSON files(s).> Task :group-coordinator:processMessages MessageGenerator: processed 16 Kafka message JSON files(s).> Task :metadata:processMessages MessageGenerator: processed 25 Kafka message JSON files(s).> Task :clients:processMessages MessageGenerator: processed 160 Kafka message JSON files(s).> Task :clients:processTestMessages MessageGenerator: processed 4 Kafka message JSON files(s).> Task :core:compileScala Unexpected javac output: warning: [options] bootstrap class path not set in conjunction with -source 8 Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Volumes/Sense/Work/kafka/kafka/core/src/main/java/kafka/log/remote/RemoteLogManager.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 warning.> Task :core:compileTestScala Unexpected javac output: warning: [options] bootstrap class path not set in conjunction with -source 8 Note: /Volumes/Sense/Work/kafka/kafka/core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 warning.> Task :storage:testGradle Test Run :storage:test > Gradle Test Executor 3 > AlterLogDirTest > executeTieredStorageTest(String) > executeTieredStorageTest(String).quorum=zk PASSEDGradle Test Run :storage:test > Gradle Test Executor 3 > AlterLogDirTest > executeTieredStorageTest(String) > executeTieredStorageTest(String).quorum=kraft PASSEDDeprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.BUILD SUCCESSFUL in 1m 27s 121 actionable tasks: 60 executed, 61 up-to-date {code} > alterReplicaLogDirs failed even if responded with none error > ------------------------------------------------------------ > > Key: KAFKA-16760 > URL: https://issues.apache.org/jira/browse/KAFKA-16760 > Project: Kafka > Issue Type: Bug > Affects Versions: 3.7.0 > Reporter: Luke Chen > Priority: Major > > When firing alterLogDirRequest, it gets error NONE result. But actually, the > alterLogDir never happened with these errors: > {code:java} > [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) > {code} > Note: It's under KRaft mode. So the log with LeaderAndIsr is wrong. > This can be reproduced in this > [branch|https://github.com/showuon/kafka/tree/alterLogDirTest] and running > this test: > {code:java} > ./gradlew cleanTest storage:test --tests > org.apache.kafka.tiered.storage.integration.AlterLogDirTest > {code} > The complete logs can be found here: > https://gist.github.com/showuon/b16cdb05a125a7c445cc6e377a2b7923 -- This message was sent by Atlassian Jira (v8.20.10#820010)