kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chia7...@apache.org
Subject [kafka] branch 2.8 updated: HOTFIX: Fix build error caused by ControllerApisTest.scala (#10146)
Date Tue, 23 Feb 2021 04:12:56 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/2.8 by this push:
     new 148420f  HOTFIX: Fix build error caused by ControllerApisTest.scala (#10146)
148420f is described below

commit 148420fcdca9f4a37c87b008e8fa5de0d9f96d73
Author: Chia-Ping Tsai <chia7712@gmail.com>
AuthorDate: Fri Feb 19 05:47:14 2021 +0800

    HOTFIX: Fix build error caused by ControllerApisTest.scala (#10146)
    
    Introduced by #10113. The error was:
    
    ```
    14:01:06 > Task :core:compileTestScala
    14:01:06 [Error] /home/jenkins/agent/workspace/LoopTest-Kafka/kafka/core/src/test/scala/unit/kafka/server/ControllerApisTest.scala:70:
the result type of an implicit conversion must be more specific than Object
    ```
    
    Reviewers: Ismael Juma <ismael@juma.me.uk
---
 core/src/test/scala/unit/kafka/server/ControllerApisTest.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/test/scala/unit/kafka/server/ControllerApisTest.scala b/core/src/test/scala/unit/kafka/server/ControllerApisTest.scala
index fc0a38b..3533fcf 100644
--- a/core/src/test/scala/unit/kafka/server/ControllerApisTest.scala
+++ b/core/src/test/scala/unit/kafka/server/ControllerApisTest.scala
@@ -67,7 +67,7 @@ class ControllerApisTest {
   private def createControllerApis(authorizer: Option[Authorizer],
                                    supportedFeatures: Map[String, VersionRange] = Map.empty):
ControllerApis = {
     val props = new Properties()
-    props.put(KafkaConfig.NodeIdProp, nodeId)
+    props.put(KafkaConfig.NodeIdProp, nodeId: java.lang.Integer)
     props.put(KafkaConfig.ProcessRolesProp, "controller")
     new ControllerApis(
       requestChannel,


Mime
View raw message