kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Shenoy <ashe...@instartlogic.com>
Subject Re: Thread safety when committing from multiple threads
Date Wed, 16 Sep 2015 17:32:49 GMT
Hi,

Can anyone please shed some light on this ? I couldn't find any pointers
online other than this:
http://stackoverflow.com/questions/26477585/when-calling-commitoffsets-on-kafka-high-level-consumerconnector-what-value-get


Thanks,
Ashish

On Mon, Sep 14, 2015 at 2:06 PM, Ashish Shenoy <ashenoy@instartlogic.com>
wrote:

> Hi,
>
> I have a multi-threaded Kafka consumer. I have auto commit disabled and
> from each thread, I periodically call commitOffsets() to commit the offsets
> to Kafka.
>
> Is this thread safe ? What is the effect of calling commitOffsets()
> concurrently from multiple threads ? Should the consumer writer ensure that
> the call to commitOffsets() is synchronized across multiple threads ?
>
> Thanks,
> Ashish
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message