mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-10-31 18:47:48 +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) { | ||||
|             Error error = ex.get_error(); | ||||
|             // 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) { | ||||
|                 throw ex; //abort | ||||
|                 return true; //not considered an error. | ||||
|             } | ||||
|             // If there's a callback and it returns false for this message, abort. | ||||
|             // Otherwise keep committing. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexander Damian
					Alexander Damian