You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2025/01/07 20:13:53 UTC

(kafka) branch 4.0 updated: KAFKA-18414 Remove KRaftRegistrationResult (#18401)

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

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


The following commit(s) were added to refs/heads/4.0 by this push:
     new 51b87c7a343 KAFKA-18414 Remove KRaftRegistrationResult (#18401)
51b87c7a343 is described below

commit 51b87c7a3437753cf0524163e6f41285f9b554e7
Author: TengYao Chi <ki...@gmail.com>
AuthorDate: Wed Jan 8 04:09:28 2025 +0800

    KAFKA-18414 Remove KRaftRegistrationResult (#18401)
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 core/src/main/scala/kafka/zk/KafkaZkClient.scala | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/core/src/main/scala/kafka/zk/KafkaZkClient.scala b/core/src/main/scala/kafka/zk/KafkaZkClient.scala
index 3c9740fb5ce..8efa12ee7fd 100644
--- a/core/src/main/scala/kafka/zk/KafkaZkClient.scala
+++ b/core/src/main/scala/kafka/zk/KafkaZkClient.scala
@@ -45,10 +45,6 @@ import java.lang.{Long => JLong}
 import scala.collection.{Map, Seq, mutable}
 import scala.jdk.CollectionConverters._
 
-sealed trait KRaftRegistrationResult
-case class FailedRegistrationResult() extends KRaftRegistrationResult
-case class SuccessfulRegistrationResult(zkControllerEpoch: Int, controllerEpochZkVersion: Int) extends KRaftRegistrationResult
-
 /**
  * Provides higher level Kafka-specific operations on top of the pipelined [[kafka.zookeeper.ZooKeeperClient]].
  *