[Kafka Connect] Exception : Offset Storage Writer is already flushing

2,201 views
Skip to first unread message

Sreejith S

unread,
Aug 26, 2016, 6:31:24 AM8/26/16
to Confluent Platform
I am getting below exception from one connector. Connect is running in distributed mode.

[2016-08-26 10:27:13,351] ERROR Invalid call to OffsetStorageWriter flush() while already flushing, the framework should not allow this (org.apache.kafka.connect.storage.OffsetStorageWriter:110)
[2016-08-26 10:27:13,352] ERROR Unhandled exception when committing WorkerSourceTask{id=jmx-source-0}:  (org.apache.kafka.connect.runtime.SourceTaskOffsetCommitter:115)
org.apache.kafka.connect.errors.ConnectException: OffsetStorageWriter is already flushing
        at org.apache.kafka.connect.storage.OffsetStorageWriter.beginFlush(OffsetStorageWriter.java:112)
        at org.apache.kafka.connect.runtime.WorkerSourceTask.commitOffsets(WorkerSourceTask.java:279)
        at org.apache.kafka.connect.runtime.SourceTaskOffsetCommitter.commit(SourceTaskOffsetCommitter.java:107)
        at org.apache.kafka.connect.runtime.SourceTaskOffsetCommitter.access$000(SourceTaskOffsetCommitter.java:44)
        at org.apache.kafka.connect.runtime.SourceTaskOffsetCommitter$1.run(SourceTaskOffsetCommitter.java:73)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

What would be the problem here ? Any pointers please 

Thanks
Sreejith

Shikhar Bhushan

unread,
Aug 26, 2016, 4:57:46 PM8/26/16
to Confluent Platform
Hi Sreejith,

This looks like a bug as the error message indicates. Do you see this error consistently? Can you share a more complete log, perhaps also with DEBUG level? If you don't want to share it publicly please feel free to email me directly.

Thanks,

Shikhar

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/11e96ec6-004d-44d6-a0f8-ec06df2b4ae0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sreejith S

unread,
Aug 28, 2016, 12:02:49 AM8/28/16
to Confluent Platform
Hi Shikhar,

Thank you.

When i tried it with standalone mode , it works , there is no such exception.

I have a question here. Is it require to run connect-distributed in all kafka brokers ? Probably all connector JAR's and proeprties in all kafka brokers ?

Regards,
Srijith
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.

Sreejith S

unread,
Aug 29, 2016, 4:35:59 AM8/29/16
to Confluent Platform
Hi Shikhar,

Adding to below note,

I tried by keeping the JAR and properties in all kafka brokers. But Still the exception is there.
And i see similar issues in kafka-connect-jdbc as well , https://github.com/confluentinc/kafka-connect-jdbc/issues/54

Thanks & Regards,
Srijith

Shikhar Bhushan

unread,
Aug 29, 2016, 2:07:00 PM8/29/16
to Confluent Platform
Hi Sreejith,

The periodic commit failures start with an initial NullPointerException when committing offsets. That issue was fixed in Kafka/Connect 0.10.0.1, which will be included in CP 3.0.1. (https://issues.apache.org/jira/browse/KAFKA-3500). I updated the JDBC connector issue you linked to as well, thanks for digging that up.

Best,

Shikhar

To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platf...@googlegroups.com.

To post to this group, send email to confluent...@googlegroups.com.

Sreejith S

unread,
Aug 29, 2016, 11:19:15 PM8/29/16
to confluent...@googlegroups.com

Thank you Shikhar,  will update my kafka version then.

Regards,
Sreejith


To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Confluent Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/confluent-platform/i-tT-JnbbGY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAPXNJrV4hMDvqF1PXvXGZgRryQGEFmmKdNui0XrFxJgHWL6aYQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages