You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "shadygrove (via GitHub)" <gi...@apache.org> on 2024/02/07 21:26:16 UTC

[I] Reader HasNext() enters infinite loop [pulsar-client-go]

shadygrove opened a new issue, #1171:
URL: https://github.com/apache/pulsar-client-go/issues/1171

   **Issue**
   https://github.com/apache/pulsar-client-go/blob/f476814a9e1bac484e9589d4fb3f299066f54ddc/pulsar/reader_impl.go#L180
   
   The code above logs errors infinitely until the HasNext() call is able to proceed.  If it never resolves, it just logs indefinitely.  For us, that resulted in flooding our logging system with unnecessary logs.
   
   **Expected Behavior**. 
   I would expect that on error, the loop would exit and return the error.   Maybe I am not understanding the intended behavior for this code.
   
   **Pulsar Client Version**
   v11 (code also present in v12)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Reader HasNext() enters infinite loop [pulsar-client-go]

Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower closed issue #1171: Reader HasNext() enters infinite loop
URL: https://github.com/apache/pulsar-client-go/issues/1171


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org