mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 23:45:15 +00:00
36b887ee7c
Today when reading a malformed operation from the translog, we throw an assertion error that is immediately caught and wrapped into a translog corrupted exception. This commit replaces this by electing to directly throw a translog corrupted exception instead. Additionally, this cleanup also addressed a double-wrapped translog corrupted exception. Namely, verifying the checksum can throw a translog corrupted exception which the existing code would catch and wrap again in a translog corrupted exception. Relates #19256