Skip to content
Snippets Groups Projects
Commit 176448be authored by Christian Leckner's avatar Christian Leckner :speech_balloon:
Browse files

Merged PR 1198: Bug 1501: Dead Letter Queue count very high for azure en-queue function.

This is Part 1 of Bug 1501: Dead Letter Queue count very high for azure en-queue function.
os-indexer-azure is emitting a message that contains invalid JSON. The fix is to use `gson.toJson (recordChangedMessages)`.

Related work items: #1591
parents bf0643ec 06247843
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -61,8 +61,9 @@ public class PublisherImpl implements IPublisher {
Message message = new Message();
RecordChangedMessages recordChangedMessages = getRecordChangedMessage(headers, indexerBatchStatus);
message.setBody(recordChangedMessages.toString().getBytes(StandardCharsets.UTF_8));
Gson gson = new GsonBuilder().create();
String json = gson.toJson(recordChangedMessages);
message.setBody(json.getBytes(StandardCharsets.UTF_8));
message.setContentType("application/json");
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment