You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/03/06 15:56:20 UTC
[GitHub] [flink] glaksh100 edited a comment on issue #7900: [FLINK-11826]
Fix flaky Kafka ratelimiter test
glaksh100 edited a comment on issue #7900: [FLINK-11826] Fix flaky Kafka ratelimiter test
URL: https://github.com/apache/flink/pull/7900#issuecomment-470162038
@tillrohrmann The test asserts that the Kafka consumer reads <= X bytes/sec. I can increase X, so that the test takes lesser time to run.
As for the reason of the flakiness, the failures were all happening due to the topic not existing while producing to it (though is explicitly created), which made me think it's some sort of a timing issue. I believe [other tests](https://github.com/apache/flink/blob/19d20e5cf8d44d726b4a44575e6c8db677e4c3c8/flink-connectors/flink-connector-kafka-base/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaConsumerTestBase.java#L1280) that run as a part of the `ITCase` explicitly set the `retries` property, which is what I thought might be the problem here.
```
Caused by: java.lang.Exception: Failed to send data to Kafka: This server does not host this topic-partition.
at org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducerBase.checkErroneous(FlinkKafkaProducerBase.java:375)
at org.apache.flink.streaming.connectors.kafka.FlinkKafkaProducerBase.close(FlinkKafkaProducerBase.java:323)
at org.apache.flink.api.common.functions.util.FunctionUtils.closeFunction(FunctionUtils.java:43)
at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.close(AbstractUdfStreamOperator.java:109)
at org.apache.flink.streaming.runtime.tasks.StreamTask.closeAllOperators(StreamTask.java:442)
at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:317)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:711)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services