java - Kafka Error fetching offset data. Reason: 1 -


i'm running java program uses kafka library , check committed offset of consumer group zookeeper every 1 sec. program runs 2 hour , starts throwing runtimeexception:

java.lang.runtimeexception: error fetching offset data. reason: 1     @ com.pinterest.secor.common.kafkaclient.getmessage(kafkaclient.java:127)     @ com.pinterest.secor.common.kafkaclient.getcommittedmessage(kafkaclient.java:186) 

...

what reason 1? couldn't find document or pages illustrating root cause of situation.

check out, code fragment of kafka.common.errormapping:

  val unknowncode : short = -1   val noerror : short = 0   val offsetoutofrangecode : short = 1   val invalidmessagecode : short = 2   val unknowntopicorpartitioncode : short = 3   val invalidfetchsizecode  : short = 4   val leadernotavailablecode : short = 5   val notleaderforpartitioncode : short = 6   val requesttimedoutcode: short = 7   val brokernotavailablecode: short = 8   val replicanotavailablecode: short = 9   val messagesizetoolargecode: short = 10   val stalecontrollerepochcode: short = 11   val offsetmetadatatoolargecode: short = 12   val staleleaderepochcode: short = 13   val offsetsloadinprogresscode: short = 14   val consumercoordinatornotavailablecode: short = 15   val notcoordinatorforconsumercode: short = 16   val invalidtopiccode : short = 17   val messagesetsizetoolargecode: short = 18   val notenoughreplicascode : short = 19   val notenoughreplicasafterappendcode: short = 20 

as can see, 1 means offsetoutofrangecode.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -