gaurav-narula opened a new pull request, #15263: URL: https://github.com/apache/kafka/pull/15263
In Kraft mode, the broker fails to handle topic recreation correctly with broken disks. This is because `ReplicaManager` tracks HostedPartitions which are on an offline disk but it doesn't associate TopicId information with them. This change updates `HostedPartition.Offline` to associate topic id information. We also update the log creation logic in `Partition::createLogInAssignedDirectoryId` to not just rely on `targetLogDirectoryId == DirectoryId.UNASSIGNED` to determine if the log to be created is "new". Please refer to the comments in https://issues.apache.org/jira/browse/KAFKA-16157 for more information. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org