leancodepl / leancodepl/corelibrary
MassTransit messages redelivers are ignored
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 30
- Forks
- 4
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 3
Description
Should one want to redeliver a MassTransit message in the future, because for example they'd like to solve a race issue, their redelivered message will be ignored, because this filter will suppress it. I mean redelivering in the handler via:
await context.Redeliver(TimeSpan.FromMinutes(1));
return;
Currently the only way to redeliver message is to throw an exception, which clutters the logs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading src/Domain/LeanCode.DomainModels.MassTransitRelay/Middleware/ConsumeMessageOnceFilter.cs and trace how it handles messages redelivered with context.Redeliver(TimeSpan.FromMinutes(1)). Reproduce the handler flow described in the issue and run the relevant project tests or test suite. Done means a deliberately redelivered message is processed rather than suppressed, without requiring an exception that clutters logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100