Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: error MVCCExportToSST when a single KV is larger than the ma…
…x size 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 detection 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
- Loading branch information