You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/03 09:45:50 UTC

[GitHub] [pulsar-client-go] bschofield edited a comment on pull request #678: Correct apparent logic error in batchContainer's hasSpace() method

bschofield edited a comment on pull request #678:
URL: https://github.com/apache/pulsar-client-go/pull/678#issuecomment-985373428


   The concerning part is there may be a flaky `TestNacksTracker()` test now?
   
   I would guess that it's probably this part of `newNackMockedConsumer()`:
   
   ```
   		// since the client ticks at an interval of delay / 3
   		// wait another interval to ensure we get all messages
   		time.Sleep(testNackDelay + 101*time.Millisecond)
   ```
   
   Since the sleep above happens inside a new goroutine, and `(*negativeAcksTracker).track()` also runs inside a new goroutine, it's probably possible in rare cases for the goroutine scheduling to interfere with the intended sequence of actions.


-- 
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