mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-06 05:27:53 +00:00
Return true when RD_KAFKA_RESP_ERR__NO_OFFSET is received
This commit is contained in:
@@ -147,9 +147,9 @@ private:
|
|||||||
catch (const HandleException& ex) {
|
catch (const HandleException& ex) {
|
||||||
Error error = ex.get_error();
|
Error error = ex.get_error();
|
||||||
// If there were actually no offsets to commit, return. Retrying won't solve
|
// If there were actually no offsets to commit, return. Retrying won't solve
|
||||||
// anything here
|
// anything here.
|
||||||
if (error == RD_KAFKA_RESP_ERR__NO_OFFSET) {
|
if (error == RD_KAFKA_RESP_ERR__NO_OFFSET) {
|
||||||
throw ex; //abort
|
return true; //not considered an error.
|
||||||
}
|
}
|
||||||
// If there's a callback and it returns false for this message, abort.
|
// If there's a callback and it returns false for this message, abort.
|
||||||
// Otherwise keep committing.
|
// Otherwise keep committing.
|
||||||
|
|||||||
Reference in New Issue
Block a user