Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
83102: storage: return error from MVCCExportToSST when a KV is larger than the max size r=stevendanna a=stevendanna Previously, if a single KV was larger than the max size, MVCCExportToSST would not add the KV to the SST but also return a nil error. This was because the current code assumed that we might be able to resume. So rather than failing, it set the resume key. Then, before exiting, if the SST is empty, we early return an empty resume key and a nil error. Thus, anytime we hit a key larger than the max as the first key being added to the SST, we would silently ignore it. Now, we check for this condition early and return an error. Fixes #83100 Release note (bug fix): Fix bug where BACKUP may be missing data when the cluster was configured with a very low values for kv.bulk_sst.max_allowed_overage and kv.bulk_sst.target_size Co-authored-by: Steven Danna <[email protected]>
- Loading branch information