You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Jason Rosenberg <jb...@squareup.com> on 2015/06/01 22:21:22 UTC

Re: KafkaException: Size of FileMessageSet has been truncated during write

Might be good to have a more friendly error message though!

On Thu, May 28, 2015 at 4:32 PM, Andrey Yegorov <an...@gmail.com>
wrote:

> Thank you!
>
> ----------
> Andrey Yegorov
>
> On Wed, May 27, 2015 at 4:42 PM, Jiangjie Qin <jq...@linkedin.com.invalid>
> wrote:
>
> > This should be just a message fetch failure. The socket was disconnected
> > when broker was writing to it. There should not be data loss.
> >
> > Jiangjie (Becket) Qin
> >
> > On 5/27/15, 11:00 AM, "Andrey Yegorov" <an...@gmail.com> wrote:
> >
> > >I've noticed a few exceptions in the logs like the one below, does it
> > >indicate data loss? should I worry about this?
> > >What is the possible reason for this to happen?
> > >I am using kafka 0.8.1.1
> > >
> > >ERROR Closing socket for /xx.xxx.xxx.xxx because of error
> > >(kafka.network.Processor)
> > >
> > >kafka.common.KafkaException: Size of FileMessageSet
> > >/data/kafka/topic-name-11/00000000000014340499.log has been truncated
> > >during write: old size 26935, new size 0
> > >
> > >        at kafka.log.FileMessageSet.writeTo(FileMessageSet.scala:144)
> > >
> > >        at kafka.api.PartitionDataSend.writeTo(FetchResponse.scala:69)
> > >
> > >        at kafka.network.MultiSend.writeTo(Transmission.scala:102)
> > >
> > >        at kafka.api.TopicDataSend.writeTo(FetchResponse.scala:124)
> > >
> > >        at kafka.network.MultiSend.writeTo(Transmission.scala:102)
> > >
> > >        at kafka.api.FetchResponseSend.writeTo(FetchResponse.scala:219)
> > >
> > >        at kafka.network.Processor.write(SocketServer.scala:375)
> > >
> > >        at kafka.network.Processor.run(SocketServer.scala:247)
> > >
> > >        at java.lang.Thread.run(Thread.java:745)
> > >
> > >----------
> > >Andrey Yegorov
> >
> >
>