-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Search before asking
- I searched in the issues and found nothing similar.
Version
master
Minimal reproduce step
Apply the patch above to the main branch and run ConsumerSeekTest.testSubscribeSeekRaces.
What did you expect to see?
The seek call should return quickly.
What did you see instead?
The seek call is blocked.
Anything else?
This bug happened in the following process order:
- Consumer sent a SEEK request, the seek status was set to
IN_PROGRESSand the callback was assigned toseekCallback_ - Broker disconnected and started resetting the cursor
- Consumer received a CLOSE_CONSUMER request and scheduled reconnection after 100ms
- Consumer reconnected and call
connectionOpened. Since the seek status isIN_PROGRESS, it would not trigger the seek callback. A SUBSCRIBE request would be sent. - Consumer received a SEEK response. Since the SUBSCRIBE response was not received for now, the
cnxfield was not set, so the seek status was set toCOMPLETEand wait forconnectionOpenedto complete the callback
Are you willing to submit a PR?
- I'm willing to submit a PR!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working