Git Product home page Git Product logo

Comments (3)

solsson avatar solsson commented on August 28, 2024

Re-assigned partitions of the two topics to the two working brokers, using #95 with BROKERS env set to 0,1. The job pod logged:

# reassign-topics.json
{"topics":[
 {"topic":"test-produce-consume"},
 {"topic":"test-kafkacat"}
]}
# proposed-reassignment.json
{"version":1,"partitions":[{"topic":"test-kafkacat","partition":0,"replicas":[1,0],"log_dirs":["any","any"]},{"topic":"test-produce-consume","partition":0,"replicas":[0,1],"log_dirs":["any","any"]}]}
Current partition replica assignment

{"version":1,"partitions":[{"topic":"test-kafkacat","partition":0,"replicas":[2,0],"log_dirs":["any","any"]},{"topic":"test-produce-consume","partition":0,"replicas":[1,2],"log_dirs":["any","any"]}]}

Save this to use as the --reassignment-json-file option during rollback
Successfully started reassignment of partitions.

Now kafka-2 starts but load is unbalanced. Did another reassign, with BROKERS set to 0,1,2 and got proposed reassignment {"version":1,"partitions":[{"topic":"test-kafkacat","partition":0,"replicas":[1,2],"log_dirs":["any","any"]},{"topic":"test-produce-consume","partition":0,"replicas":[2,0],"log_dirs":["any","any"]}]}.

Still seeing this log message though: WARN Received a PartitionLeaderEpoch assignment for an epoch < latestEpoch. This implies messages have arrived out of order. New: {epoch:13, offset:2404}, Current: {epoch:14, offset1852} for Partition: test-produce-consume-0 (kafka.server.epoch.LeaderEpochFileCache).

from kubernetes-kafka.

solsson avatar solsson commented on August 28, 2024

Pod restart got rid of the warning, but showed ERROR [ReplicaFetcher replicaId=2, leaderId=0, fetcherId=0] Error for partition test-produce-consume-0 to broker 0:org.apache.kafka.common.errors.NotLeaderForPartitionException: This server is not the leader for that topic-partition. (kafka.server.ReplicaFetcherThread).

Used maintenance/preferred-replica-election-job.yml.

from kubernetes-kafka.

ramazansakin avatar ramazansakin commented on August 28, 2024

Hi @solsson, could u figure it out why happens the above WARN message exactly?
"WARN Received a PartitionLeaderEpoch assignment for an epoch < latestEpoch. This implies messages have arrived out of order."

from kubernetes-kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.