Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1508 from Particular/handle-poison-messages-in-st…
…aging If message consistently fails in staging phase of retries, ServiceControl is unable to retry any messages
- Loading branch information
Showing
7 changed files
with
222 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/ServiceControl/EventLog/Definitions/MessageFailedInStagingDefinition.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace ServiceControl.EventLog.Definitions | ||
{ | ||
using Recoverability; | ||
|
||
class MessageFailedInStagingDefinition : EventLogMappingDefinition<MessageFailedInStaging> | ||
{ | ||
public MessageFailedInStagingDefinition() | ||
{ | ||
TreatAsError(); | ||
RelatesToMessage(m => m.UniqueMessageId); | ||
Description(m => $"All attempts to stage message {m.UniqueMessageId} failed. The message has been removed from the retry batch. Please contact Particular Software support and provide failure details from ServiceControl log files."); | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/ServiceControl/Recoverability/Retrying/Messages/MessageFailedInStaging.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace ServiceControl.Recoverability | ||
{ | ||
using Infrastructure.DomainEvents; | ||
|
||
public class MessageFailedInStaging : IDomainEvent | ||
{ | ||
public string UniqueMessageId { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.