Skip to content

Commit

Permalink
Revert VD-4824
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-village committed Aug 27, 2024
1 parent a499786 commit cce751b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion target_elasticsearch/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ def write_output(self, records):
try:
# Some documents may be very heavy, eg full Drive documents or diffs
# -> Apply a 25MB chunk limit instead of the default 100MB
parallel_bulk(self.client, records, max_chunk_bytes=25*1024*1024)
# parallel_bulk(self.client, records, max_chunk_bytes=25*1024*1024)
# -- The above caused some dropped records - revert to the previous simple bulk insert
bulk(self.client, records)
# Successful -> exit the loop
break
except elasticsearch.helpers.BulkIndexError as e:
Expand Down

0 comments on commit cce751b

Please sign in to comment.