This is an automated email from the ASF dual-hosted git repository.

dajac pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new fcfd378129e HOTFIX: Fix compilation error in BrokerLifecycleManager 
(#14732)
fcfd378129e is described below

commit fcfd378129e936a5f8404e8f171864d45b3548d2
Author: David Jacot <[email protected]>
AuthorDate: Fri Nov 10 10:27:35 2023 +0100

    HOTFIX: Fix compilation error in BrokerLifecycleManager (#14732)
    
    This patch fixes a compilation error introduced by 
https://github.com/apache/kafka/pull/14392 for Scala 2.12.
    
    ```
    > Task :core:compileScala
    
    [Error] 
/home/jenkins/workspace/Kafka_kafka-pr_PR-14392/core/src/main/scala/kafka/server/BrokerLifecycleManager.scala:305:49:
 value incl is not a member of 
scala.collection.immutable.Set[org.apache.kafka.common.Uuid]
    ```
    
    Reviewers: Luke Chen <[email protected]>
---
 core/src/main/scala/kafka/server/BrokerLifecycleManager.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/scala/kafka/server/BrokerLifecycleManager.scala 
b/core/src/main/scala/kafka/server/BrokerLifecycleManager.scala
index a26459e56d8..bfe5ca0fde7 100644
--- a/core/src/main/scala/kafka/server/BrokerLifecycleManager.scala
+++ b/core/src/main/scala/kafka/server/BrokerLifecycleManager.scala
@@ -302,7 +302,7 @@ class BrokerLifecycleManager(
       if (offlineDirsPending.isEmpty) {
         offlineDirsPending = Set(dir)
       } else {
-        offlineDirsPending = offlineDirsPending.incl(dir)
+        offlineDirsPending = offlineDirsPending + dir
       }
       if (registered) {
         scheduleNextCommunicationImmediately()

Reply via email to