mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Currently we flush the Translog buffer when a new operation causes the buffer to breach 1MB. This introduces a scenario where an exception is thrown AFTER the writer has accepted the operation. To avoid this, this commit flushes the Translog in an #add call before adding a new operation. This fixes #63299.