Particular / ServiceControl

Backend for ServiceInsight and ServicePulse
https://docs.particular.net/servicecontrol/
Other
51 stars 47 forks source link

Add the message body back to the MessageFailed event when non-binary & under LOH limit #4475

Closed DavidBoike closed 3 days ago

DavidBoike commented 3 days ago

Fix for https://github.com/Particular/ServiceControl/issues/4474

Body storage and full-text indexing were changed a lot in the switch from RavenDB 3.5 to RavenDB 5. As a result, the message body was not found when publishing MessageFailed events because it was looking in the wrong place.

As documented here, the body is only available if it is small enough to not be stored on the Large Object Heap (smaller than 85KB) and full-text indexing of message bodies is enabled.