Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return error when TSM writer close returns one
The TSM writer uses a bufio.Writer that needs to be flushed before it's closed. If the flush fails for some reason, the error is not handled by the defer and the compactor continues on as if all is good. This can create files with truncated indexes or zero-length TSM files. Fixes #5889
- Loading branch information