Skip to content

[Bug] Outbox + Sweeper System.NullReferenceException: #3680

@lillo42

Description

@lillo42

Describe the bug

When I run the outbox sweeper without tracer, I'm getting NullReferenceException

To Reproduce

Setup outbox sweeper,

Exceptions (if any)

System.NullReferenceException: Object reference not set to an instance of an object.
   at Paramore.Brighter.OutboxProducerMediator`2.BackgroundDispatchUsingAsync(Int32 amountToClear, TimeSpan timeSinceSent, Boolean useBulk, RequestContext requestContext, Dictionary`2 args, CancellationToken cancellationToken) in /_/src/Paramore.Brighter/OutboxProducerMediator.cs:line 606
   at Paramore.Brighter.OutboxProducerMediator`2.ClearOutstandingFromOutboxAsync(Int32 amountToClear, TimeSpan minimumAge, Boolean useBulk, RequestContext requestContext, Dictionary`2 args, CancellationToken cancellationToken) in /_/src/Paramore.Brighter/OutboxProducerMediator.cs:line 418
   at Paramore.Brighter.OutboxSweeper.SweepAsync() in /_/src/Paramore.Brighter/OutboxSweeper.cs:line 79
   at Paramore.Brighter.Outbox.Hosting.TimedOutboxSweeper.Sweep(Object state) in /_/src/Paramore.Brighter.Outbox.Hosting/TimedOutboxSweeper.cs:line 124
   at Paramore.Brighter.Outbox.Hosting.TimedOutboxSweeper.Sweep(Object state) in /_/src/Paramore.Brighter.Outbox.Hosting/TimedOutboxSweeper.cs:line 131
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

Further technical details

  • Brighter version: 10.0.0-preview.6

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .net code3 - DoneBug

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions