leancodepl / leancodepl/corelibrary

MassTransit messages redelivers are ignored

Open
#384 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority: medium
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.