Skip to content

Commit

Permalink
Fix null document in DLQ object (#4814)
Browse files Browse the repository at this point in the history
* dplive1.yaml

Signed-off-by: Krishna Kondaka <[email protected]>

* Delete .github/workflows/static.yml

Signed-off-by: Krishna Kondaka <[email protected]>

* Fix null document in DLQ object

Signed-off-by: Krishna Kondaka <[email protected]>

---------

Signed-off-by: Krishna Kondaka <[email protected]>
Co-authored-by: Krishna Kondaka <[email protected]>
  • Loading branch information
kkondaka and Krishna Kondaka authored Aug 10, 2024
1 parent 04de9eb commit 1ddebf6
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 1ddebf6

Please sign in to comment.