Thanks Jun. If the log flush interval is more than 1, will the unflushed messages be visible to the consumers before being written to disk.
Thanks, Manju On 21 Aug 2014 06:03, Jun Rao <jun...@gmail.com> wrote: 1) if you configure the log flush interval to be 1 message, every produce request will be flushed to disk before the response is sent to the producer. Thanks, Jun On Tue, Aug 19, 2014 at 6:00 PM, Manjunath Shivakumar < manjunath.shivaku...@betfair.com> wrote: > Hi, > > I wanted to understand the exact behaviour of kafka ( 0.8.1.1 ) w.r.t > fsync. I have read the documentation and some related forum posts, but > wanted to confirm the understanding here. > > 1) If we set the log flush to happen on every message, will it happen > synchronously with each produce request, or happen in the background, while > the produce request returns immediately? > > 2) If the fsync happens asynchronous to the produce requests, will the > consumers be able to see the messages which are yet to be fsync'ed. > > Thanks, > Manjunath > > ________________________________________________________________________ > In order to protect our email recipients, Betfair Group use SkyScan from > MessageLabs to scan all Incoming and Outgoing mail for viruses. > > ________________________________________________________________________ ________________________________________________________________________ In order to protect our email recipients, Betfair Group use SkyScan from MessageLabs to scan all Incoming and Outgoing mail for viruses. ________________________________________________________________________