tzulitai commented on a change in pull request #7097: [FLINK-10874][kafka-docs] 
Document likely cause of UnknownTopicOrPartitionException
URL: https://github.com/apache/flink/pull/7097#discussion_r238228741
 
 

 ##########
 File path: docs/dev/connectors/kafka.md
 ##########
 @@ -804,4 +776,36 @@ When using standalone Flink deployment, you can also use 
`SASL_SSL`; please see
 For more information on Flink configuration for Kerberos security, please see 
[here]({{ site.baseurl}}/ops/config.html).
 You can also find [here]({{ site.baseurl}}/ops/security-kerberos.html) further 
details on how Flink internally setups Kerberos-based security.
 
+## Troubleshooting
+
+<div class="alert alert-warning">
+If you have a problem with Kafka when using Flink, keep in mind that Flink 
only wraps <tt>KafkaConsumer</tt> or <tt>KafkaProducer</tt>
+and your problem might be independent of Flink and sometimes can be solved by 
upgrading Kafka brokers,
+reconfiguring Kafka brokers or reconfiguring <tt>KafkaConsumer</tt> or 
<tt>KafkaProducer</tt> in Flink.
+Some examples of common problems are listed below.
+</div>
+
+### Data loss
+
+Depending on your Kafka configuration, even after Kafka acknowledges
+writes you can still experience data loss. In particular keep in mind about 
following properties
+in Kafka config:
+
+- `acks`
+- `log.flush.interval.messages`
+- `log.flush.interval.ms`
+- `log.flush.*`
+
+Default values for the above options can easily lead to data loss.
+Please refer to the Kafka documentation for more explanation.
+
+### UnknownTopicOrPartitionException
+
+One possible cause of this error is when a new leader election is taking place,
+for example after or during restarting a Kafka broker.
+This is a retriable exception, so Flink job should be able to restart and 
resume normal operation.
 
 Review comment:
   Alright, as I mentioned, this shouldn't affect the PR. Lets keep it as is.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to