You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Jamie Wang <ja...@actuate.com> on 2013/01/29 03:23:42 UTC

Jconsole not showing all messages on the broker for a partition

Not sure if anyone else ran into this problem in Jconsole.  I rely on this tool to see the number of messages sent by the producer and verifies the number of messages to consume by the consumer.  Sometimes I found the Jconsole does not display all messages in a topic on the broker after I restart the broker.  Let' say I sent 50 messages to the broker and at this point the Jconsole shows 50 messages. I then use control-c to shutdown the broke.  After I restart the broker and Jconsole, at this point Jconsole shows 0 message for the topic on the broker.  At the same time, I start the consumer which reads from the beginning of the partition, it read all 50 messages.  Any thoughts?

Thanks
Jamie

Re: Jconsole not showing all messages on the broker for a partition

Posted by Jun Rao <ju...@gmail.com>.
All jmx beans are restarted from 0 after restarting the broker.

Thanks,

Jun

On Mon, Jan 28, 2013 at 6:23 PM, Jamie Wang <ja...@actuate.com> wrote:

> Not sure if anyone else ran into this problem in Jconsole.  I rely on this
> tool to see the number of messages sent by the producer and verifies the
> number of messages to consume by the consumer.  Sometimes I found the
> Jconsole does not display all messages in a topic on the broker after I
> restart the broker.  Let' say I sent 50 messages to the broker and at this
> point the Jconsole shows 50 messages. I then use control-c to shutdown the
> broke.  After I restart the broker and Jconsole, at this point Jconsole
> shows 0 message for the topic on the broker.  At the same time, I start the
> consumer which reads from the beginning of the partition, it read all 50
> messages.  Any thoughts?
>
> Thanks
> Jamie
>