Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
3.7.0
Description
A call to consumer.poll should throw InvalidTopicException if an invalid topic is discovered in metadata. This can be easily reproduced by calling subscribe("invalid topic") and then poll, for example.The new consumer does not throw the expected InvalidTopicException like the LegacyKafkaConsumer does.
The legacy consumer achieves this by checking for metadata exceptions on every iteration of the ConsumerNetworkClient (see here)
This is probably what makes that testSubscriptionOnInvalidTopic fails for the new consumer. Once this bug is fixed, we should be able to enable that test for the new consumer.