--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/f893921e-eb48-402c-a99d-f056cb1b4177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nilkanth,See the docs on the SinkTask.put method: http://kafka.apache.org/0102/javadoc/org/apache/kafka/connect/sink/SinkTask.html#put(java.util.Collection)The framework has a special exception, RetriableException, that enables you to indicate that the operation failed, but you might be able to succeed if it is retried. In the case of failures you can either choose to handle retrying internally in your connector (but make sure you respect requests to SinkTask.stop!), or throw that exception and have the framework redeliver the data. Note that when you throw this exception, the *same* data will be passed to the next put() call, so you should either full accept the data (and put it in your own buffer internal to the connector) or not accept any of it.I wouldn't suggest retrying indefinitely since that can mask failures, but retrying for a short period can help mask transient issues with the other system.
-Ewen
On Tue, Apr 4, 2017 at 4:09 AM, Nilkanth Patel <nilkant...@gmail.com> wrote:
Hello,I have developed kafka-sink-connector (using confluent-oss-3.2.0-2.11, connect framework) for my data-store (Amppol ADS), which stores data from kafka topics to corresponding tables in my store.Every thing is working as expected as long as kafka servers and ADS servers are up and running.Need a help/suggestions about a specific use-case where events are getting ingested in kafka topics and underneath sink component (ADS) is down.Expectation here is Whenever a sink servers comes up, records that were ingested earlier in kafka topics should be inserted into the tables;Kindly advise how to handle such a case.Is there any support available in connect framework for this..? or atleast some references will be a great help.Nilkanth Patel.
--
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+unsubscribe@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/f893921e-eb48-402c-a99d-f056cb1b4177%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/UfNc-OH_n4s/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/CAE1jLMN5ksyNcF0Zi-mzTNgzvfmEanAi8%2BqBJv_ALvyVZw8tzQ%40mail.gmail.com.
Thanks Ewen for your reply this is really helpful.What i understand from your reply is, in case of RetriableException, connector framework replay the same collection<Sinkrecords> later as specified by the retry-interval.
Is there any way to replay records of a specific topic and not a complete batch (collection<Sinkrecords>) which can include records for multiple records...? Need to address a case where table-1 (corresponding to topic-1) is not available but another table-2 corresponding to topic-2 is available.
Thanks in advance,Nilkanth.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsubscribe@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/CAE1jLMN5ksyNcF0Zi-mzTNgzvfmEanAi8%2BqBJv_ALvyVZw8tzQ%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAC9AeubRiERL6Y3vhSzU-e2%3D%3Dky83zMti3Z5TTWU3%3DEA4-NmRA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAC9AeubRiERL6Y3vhSzU-e2%3D%3Dky83zMti3Z5TTWU3%3DEA4-NmRA%40mail.gmail.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/UfNc-OH_n4s/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/CAE1jLMO%2B9Z5S_QT1-gjKD0SSDSPSZh-%3DCxM5sg8YAZw2iVD95Q%40mail.gmail.com.
Thanks Ewen for some more insight.My connector works well (as expected) when underline sink system is up and running.I am trying to handle following scenarios with the connector implemented.Use-case Scenario: Connector is launched, Kafka producer producing records into topics, but Complete cluster containing sink (data store containing tables) is down or not yet started.Expectation is whenever a cluster will be started and corresponding tables are created, data ingested in all topics so far should get ingested into the corresponding table.As suggested, i have implemented a retry mechanism (based on RetriableException) but having an issue when a cluster is started, but any of all tables is not yet created. Example out of total 5 tables (table1, table2...table5), any table (lets say table-5) is not createdand hence SinkTask.put(Collection<SinkRecords>) throws a RetriableException, And records for all topics are replayed though Records for available tables are getting inserted into corresponding tables.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsubscribe@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/CAE1jLMO%2B9Z5S_QT1-gjKD0SSDSPSZh-%3DCxM5sg8YAZw2iVD95Q%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAC9Aeuahvj3%3DGFmPHK1TwANE85f%3D%2BoFFL4Lp3i6Ks7Bu9q3Zfg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAC9Aeuahvj3%3DGFmPHK1TwANE85f%3D%2BoFFL4Lp3i6Ks7Bu9q3Zfg%40mail.gmail.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/UfNc-OH_n4s/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/CAE1jLMMtM0c-%2BjQwEYOKNKLfWoH%3D_bOs7kfibaf2kn1o62BEEQ%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsubscribe@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/CAE1jLMMtM0c-%2BjQwEYOKNKLfWoH%3D_bOs7kfibaf2kn1o62BEEQ%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAC9AeuYnoq6WDxXDoUdZtOVuSJpZ5zDFQ8QhGwrRQ-kHauFfHw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAC9AeuYnoq6WDxXDoUdZtOVuSJpZ5zDFQ8QhGwrRQ-kHauFfHw%40mail.gmail.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/UfNc-OH_n4s/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/CAE1jLMNBp%3DZR%2BPU%2BxGemMZWRwKz4MswbFCHajgA5eqNakWecKA%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to confluent-platform+unsubscribe@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/CAE1jLMNBp%3DZR%2BPU%2BxGemMZWRwKz4MswbFCHajgA5eqNakWecKA%40mail.gmail.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/CAC9AeuZ1ZOBdf%2BPZJ%3D%2BoK5r59y8D3Thwi22o-ZxsdDi1b2NASA%40mail.gmail.com.