Skip to content

Commit

Permalink
remove chuck_size from bulk call
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Oct 15, 2024
1 parent 0612bc0 commit 01d4651
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions logprep/connector/opensearch/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,7 @@ def _write_backlog(self):
return
logger.debug("Flushing %d documents to Opensearch", len(self._message_backlog))
try:
self._bulk(
self._search_context,
self._message_backlog,
chunk_size=len(self._message_backlog),
)
self._bulk(self._search_context, self._message_backlog)
except CriticalOutputError as error:
raise error from error
except Exception as error: # pylint: disable=broad-except
Expand Down

0 comments on commit 01d4651

Please sign in to comment.