Debut Infotech
Debut Infotech

Reputation: 472

Kafka panics Hyperledger fabric orderer

I am getting this error in orderer logs:

2018-05-31 19:22:31.010 IST [orderer/consensus/kafka] try -> DEBU 2a3 [channel: testchainid] Need to retry because process failed = kafka server: The requested offset is outside the range of offsets maintained by the server for the given topic/partition.

Due to this error write operations on blockchain is not happening.

If anyone knows anything about this error please let me know

Upvotes: 1

Views: 729

Answers (1)

Antonio Glavocevic
Antonio Glavocevic

Reputation: 816

I only saw this error when I was testing what could break my network or put it in an inconsistent state.

From what I experienced, it is linked with the Leader Kafka Broker serving the topic at an offset lower than what the Orderer was expecting. I could create the error by either hard resetting the Kafka Brokers, so they were fresh, but the Orderer and rest of the network was not. Or by hard reseting the Zookeepers so when requests came in from consumers and producers (the Orderer) they treated it as a new Topic and potentially assign the Leader Broker to a broker that was not up to date for that topic.

I'm not sure of how your network entered that state but I'm pretty sure that error is to do with the Orderer asking for an Offset at a value higher than what the Leader Kafka Broker has for that Topic. Basically like an index out of range error for an array.

Since I was just experimenting, to fix the problem I just restarted the entire network fresh (deleting all data persistence).

Upvotes: 2

Related Questions