CMAK icon indicating copy to clipboard operation
CMAK copied to clipboard

Error in fetch kafka.consumer.ConsumerFetcherThread$FetchRequest@552d6b60. Possible cause: java.nio.BufferUnderflowException

Open shawnbutts opened this issue 10 years ago • 9 comments

Running 1.3.0.7 with Kafka 2.11-0.8.2.1. Getting 100s of these errors in the logs.

[warn] k.c.ConsumerFetcherThread - [ConsumerFetcherThread-KafkaManagerOffsetCache_mon01-1461164220016-3d2546ed-0-3], Error in fetch kafka.consumer.ConsumerFetcherThread$FetchRequest@552d6b60. Possible cause: java.nio.BufferUnderflowException

shawnbutts avatar Apr 20 '16 16:04 shawnbutts

Running 1.3.0.8 with confluent kafka 9.0.1 and seeing the same. I could not find refs to it in the source code and the manager appears to work correctly other than the error.

As a sloppy hack I added this to my script on the same line where I launch kafka-manager so at least my logs are clean:

| grep -v "Possible cause: java.nio.BufferUnderflowException" ^ this is pipe.

JustMeDashV avatar Apr 26 '16 18:04 JustMeDashV

Running 1.3.0.7 with Kafka 2.11-0.8.2.1. Getting the same warning log.

xiongjiaji avatar May 04 '16 07:05 xiongjiaji

Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2.

jmwong avatar May 09 '16 22:05 jmwong

I'm pretty sure this has to do with the fact that kafka-manager is built against kafka 0.9.0.1. The consumer in 0.9.0.1 is not compatible with an 0.8.2.x broker. The reverse (0.8.2.x consumer with 0.9.0.1 broker) is backwards compatible if inter.broker.protocol.version is set correctly in the broker config.

I don't know of an eloquent way to solve this dilemma other than trying to use 0.8.2.x dependencies and fixing any compilation errors. Alternatively, you could update your brokers to 0.9.0.1.

I suppose a third option could be to abstract the consumer portion of kafka-manager out into its own microservice (or number of micoservices for each version of kafka you need to monitor). Then you could determine which microservice to call based on the version setting in the cluster configuration.

aaronmray avatar May 13 '16 13:05 aaronmray

Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2.

0xManyu avatar Jun 12 '16 05:06 0xManyu

Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2.

DingHe avatar Jul 14 '16 08:07 DingHe

I worked around this by creating a branch off 3ef1568cee03359387f786e1e8aec4f299ff794c. I applied these patches with some modifications to rip out the Kafka 0.9 stuff: https://github.com/yahoo/kafka-manager/commit/fedbdca0a2a680f51bea65506a6b73a7125095b2 https://github.com/yahoo/kafka-manager/commit/0ab8108b0702df9d39c6695abdff97ce54be8a1f

The branch is here: https://github.com/jmwong/kafka-manager/tree/pre-090-support

jmwong avatar Jul 21 '16 19:07 jmwong

Same here. On 1.3.0.8 with Kafka 2.11-0.8.2.2. image image I don't know if this is the reason why my JMX Metrics does‘t display.

Songdantes avatar Dec 30 '16 08:12 Songdantes

Nope. JMX metrics usually don't display because of firewall rules. The tricky part is you need to whitelist everything. Not just the port to told JMX to listen on. This is because during the connection JMX creates random ports. :(

JustMeDashV avatar Feb 22 '17 01:02 JustMeDashV