You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Ted Yu <yu...@gmail.com> on 2018/05/31 19:32:49 UTC
retrieving leaderAndIsr
Hi,
For the following code which works against 0.10 :
def isPropagated = server.apis.metadataCache.getPartitionInfo(topic,
partition) match {
case Some(partitionState) =>
val leaderAndInSyncReplicas =
partitionState.leaderIsrAndControllerEpoch.leaderAndIsr
I got the this error compiling against 2.0 :
value leaderIsrAndControllerEpoch is not a member of
org.apache.kafka.common.requests.UpdateMetadataRequest.PartitionState
[ERROR] val leaderAndInSyncReplicas =
partitionState.leaderIsrAndControllerEpoch.leaderAndIsr
Please comment on the replacement API.
Thanks