nsweeting opened a new issue, #3339:
URL: https://github.com/apache/kvrocks/issues/3339

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Version
   
   kvrocks_version: unstable
   kvrocks_git_sha1: 5c80882
   OS: macOS Darwin 24.6.0 (also tested via Docker)
   Docker image: apache/kvrocks:nightly
   
   ### Minimal reproduce step
   
   When multiple clients issue XREADGROUP BLOCK on the same stream while a 
writer is adding messages, Kvrocks sometimes sends two RESP responses for a 
single command.
   
   The original issue was raised here: 
https://github.com/apache/kvrocks/issues/3338
   
   We are still experiencing what's described here - although its gotten 
"better". I have yet to be able to replicate it locally - it does happen in a 
highly concurrent deployed environment though.
   
   ### What did you expect to see?
   
   Each XREADGROUP BLOCK command should receive exactly one RESP response:
   
       $-1\r\n (null bulk string) when the block times out with no data, OR
       *N\r\n... (array) containing the stream data
   
   
   ### What did you see instead?
   
   Under concurrent load, Kvrocks sends two responses for a single command:
   
       *-1\r\n*0\r\n
   
   ### Anything Else?
   
   This issues doesn't appear when using the non-blocking variant of the 
command.
   It only manifests with `BLOCK`
   
   I was attempting to get Claude to interpret the potential issue. There was 
some direction pointing towards the timer callback - but nothing conclusive. 
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to