Skip to content

Improve RD_KAFKA_RESP_ERR__TIMED_OUT to be able to differentiate cases #343

@moukoublen

Description

@moukoublen

rkmessage_tmp.err = RD_KAFKA_RESP_ERR__TIMED_OUT;

Hello,
This is a question mostly rather than an issue 😊

I'd like to ask why the default behavior of librdkafka (return null if no message appears during the specified timeout) has been replaced by returning the RD_KAFKA_RESP_ERR__TIMED_OUT error code.

To my understanding having a null message (no message) after the specified timeout is not an error case. It is something expected isn't it?

Especially in cases where a small timeout is being used the application could have many RD_KAFKA_RESP_ERR__TIMED_OUT error code every minute.

Could this "hide" a timeout error that could arrive from rd_kafka_consumer_poll pointing out actual timeout during broker communication?

Thanks ☺️

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions