forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: fix TestStoreRangeSplitAtRangeBounds
`TestStoreRangeSplitAtRangeBounds` should have been in conflict with cockroachdb#14273, but the test had been broken for a while because we were sending `AdminSplit` requests to the wrong range. This change fixes the test by asserting that attempting to split a range at its start key is a no-op which does not actually perform a split. Additionally, we had places in our code that claimed an `AdminSplit` request to the end of a range was a no-op and other places that claimed it was an error. In reality, it should have been a `RangeKeyMismatchError`, so this change removes the incorrect code/comments and asserts this behavior more directly in the test. Note that the change in `replica_command.go` does not alter current behavior. The change simply removes an impossible condition.
- Loading branch information
1 parent
b640072
commit 03602fc
Showing
2 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters