Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Session receiver stops processing next sessions #687

Open
petrformanek opened this issue Apr 15, 2019 · 2 comments
Open

Session receiver stops processing next sessions #687

petrformanek opened this issue Apr 15, 2019 · 2 comments

Comments

@petrformanek
Copy link

Actual Behavior

  1. I have simple session enabled subscription consumed by following code snippet
  2. Processing of messages takes longer than MaxAutoRenewDuration
  3. After processing of the first message the pump gets stuck and no other messages are processed

Expected Behavior

  1. Message processing will continue with another session

Discovered bug

  1. From debugging it looks like a bug in method SessionReceivePump.MessagePumpTaskAsync in finally block.
  2. When calling CancelAndDisposeCancellationTokenSource(renewLockCancellationTokenSource); there is a ObjectDisposedException and because of that this.maxConcurrentSessionsSemaphoreSlim.Release(); is not called and pump gets stuck while waiting on semaphore release.

Versions

  • OS platform and version: Windows 10
  • .NET Version: .NET Core 2.1
  • NuGet package version or commit ID: both 3.2 and 3.4

Might be related to issue #595.

@axisc
Copy link

axisc commented Apr 15, 2019

@petrformanek thanks for reporting this. We confirmed that this is a bug.

We'll add this to the backlog, but alternatively feel free to submit a PR and we can review and approve.

@petrformanek
Copy link
Author

Hi guys, any ETA for the fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants