Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-12 Thread via GitHub
cmccabe merged PR #15648: URL: https://github.com/apache/kafka/pull/15648 -- 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:

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-11 Thread via GitHub
mumrah commented on PR #15648: URL: https://github.com/apache/kafka/pull/15648#issuecomment-2050028734 Thanks for taking a look @chia7712. I've updated the PR with your suggestions and added a few more test cases. cc @soarez and @jsancio in case you'd like to take another pass --

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
chia7712 commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1549840889 ## core/src/test/scala/unit/kafka/raft/RaftManagerTest.scala: ## @@ -177,6 +201,78 @@ class RaftManagerTest { assertFalse(fileLocked(lockPath)) } + @Test +

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
mumrah commented on PR #15648: URL: https://github.com/apache/kafka/pull/15648#issuecomment-2034709602 I'm going to work on a ducktape test as well. Hopefully I can get that done today -- This is an automated message from the Apache Git Service. To respond to the message, please log on

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
mumrah commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1549818474 ## core/src/main/scala/kafka/server/KafkaServer.scala: ## @@ -420,6 +420,12 @@ class KafkaServer( isZkBroker = true,

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
mumrah commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1549817561 ## core/src/main/scala/kafka/raft/RaftManager.scala: ## @@ -69,6 +69,36 @@ object KafkaRaftManager { lock } + + /** + * Obtain the file lock and delete the

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
mumrah commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1549817561 ## core/src/main/scala/kafka/raft/RaftManager.scala: ## @@ -69,6 +69,36 @@ object KafkaRaftManager { lock } + + /** + * Obtain the file lock and delete the

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
mumrah commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1549813667 ## core/src/main/scala/kafka/server/NodeToControllerChannelManager.scala: ## @@ -389,7 +389,12 @@ class NodeToControllerRequestThread( debug("Controller isn't

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
mumrah commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1549786977 ## core/src/main/scala/kafka/server/KafkaServer.scala: ## @@ -420,6 +420,12 @@ class KafkaServer( isZkBroker = true,

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-03 Thread via GitHub
soarez commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1549319336 ## core/src/main/scala/kafka/server/KafkaServer.scala: ## @@ -420,6 +420,12 @@ class KafkaServer( isZkBroker = true,

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-02 Thread via GitHub
cmccabe commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1548528194 ## core/src/main/scala/kafka/raft/RaftManager.scala: ## @@ -69,6 +69,36 @@ object KafkaRaftManager { lock } + + /** + * Obtain the file lock and delete

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-02 Thread via GitHub
mumrah commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1548499611 ## core/src/main/scala/kafka/raft/RaftManager.scala: ## @@ -69,6 +69,36 @@ object KafkaRaftManager { lock } + + /** + * Obtain the file lock and delete the

Re: [PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-02 Thread via GitHub
jsancio commented on code in PR #15648: URL: https://github.com/apache/kafka/pull/15648#discussion_r1548472966 ## core/src/main/scala/kafka/raft/RaftManager.scala: ## @@ -69,6 +69,36 @@ object KafkaRaftManager { lock } + + /** + * Obtain the file lock and delete

[PR] KAFKA-16463 Delete metadata log on ZK broker startup [kafka]

2024-04-02 Thread via GitHub
mumrah opened a new pull request, #15648: URL: https://github.com/apache/kafka/pull/15648 This patch changes the behavior of the migrating ZK broker to always delete the local metadata log during startup. This deletion is done immediately before creating the RaftManager which will