Skip to content

Commit

Permalink
Fix null document in DLQ object
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
  • Loading branch information
Krishna Kondaka committed Aug 8, 2024
1 parent c12c569 commit 2657b80
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,9 @@ public void doOutput(final Collection<Record<Event>> records) {
}

SerializedJson serializedJsonNode = null;
if (StringUtils.equals(action, OpenSearchBulkActions.UPDATE.toString()) ||
StringUtils.equals(action, OpenSearchBulkActions.UPSERT.toString()) ||
StringUtils.equals(action, OpenSearchBulkActions.DELETE.toString())) {
if (StringUtils.equals(eventAction, OpenSearchBulkActions.UPDATE.toString()) ||
StringUtils.equals(eventAction, OpenSearchBulkActions.UPSERT.toString()) ||
StringUtils.equals(eventAction, OpenSearchBulkActions.DELETE.toString())) {
serializedJsonNode = SerializedJson.fromJsonNode(event.getJsonNode(), document);
}
BulkOperation bulkOperation;
Expand Down

0 comments on commit 2657b80

Please sign in to comment.