Skip to content

Commit a06f0aa

Browse files
authored
Fix batch message deduplication logic to not update batch on already batched message - 5.11 (#4795)
1 parent dd05a74 commit a06f0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceControl.Persistence.RavenDB/RetryDocumentDataStore.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static ICommandData CreateFailedMessageRetryDocument(string batchDocumentId, str
113113
}
114114
};
115115

116-
return new PatchCommandData(FailedMessageRetry.MakeDocumentId(messageId), null, patch: patchRequest, patchIfMissing: patchRequest);
116+
return new PatchCommandData(FailedMessageRetry.MakeDocumentId(messageId), null, patch: new PatchRequest { Script = "" }, patchIfMissing: patchRequest);
117117
}
118118

119119
public async Task GetBatchesForAll(DateTime cutoff, Func<string, DateTime, Task> callback)

0 commit comments

Comments
 (0)