Skip to content

Kafka Consumer subscribe method eats exceptions producing no output #86

Open
@lonerzzz

Description

@lonerzzz

I am using 3.4.2 of vertx and the kafka client for consuming events from a queue.

I have found that when some exceptions happen when attempting to subscribe to a topic via the following method in the KafkaReadStream class:

public KafkaReadStream<K, V> subscribe(Set<String> topics, Handler<AsyncResult<Void>> completionHandler)

the resulting exception gets caught by the catch (Throwable ex) block of the FutureTask run() method and stored with the setException(Throwable t) method and can ultimately be passed to the ThreadPoolExecutor implementation of the afterExecute method:

protected void afterExecute(Runnable r, Throwable t) { }

where nothing is done. Subsequently no result is returned and the callback is never called making debugging of the issue more difficult.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions