Skip to content

Missing validations for shard transfers#7557

Merged
timvisee merged 3 commits intodevfrom
missing-validations-for-shard-transfers
Nov 18, 2025
Merged

Missing validations for shard transfers#7557
timvisee merged 3 commits intodevfrom
missing-validations-for-shard-transfers

Conversation

@agourlay
Copy link
Member

@agourlay agourlay commented Nov 18, 2025

Adding missing validations for RestartTransfer for gRPC and REST APIs.

@agourlay agourlay marked this pull request as ready for review November 18, 2025 12:02
impl Validate for grpc::ReplicatePoints {
fn validate(&self) -> Result<(), ValidationErrors> {
Ok(())
if self.from_shard_key != self.to_shard_key {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opportunistic change copying the validation logic from REST

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change. This doesn't make sense between the same shard keys, because the points to replicate would already be there.

@agourlay agourlay requested a review from timvisee November 18, 2025 12:03
@agourlay agourlay changed the title [WIP] Missing validations for shard transfers Missing validations for shard transfers Nov 18, 2025
@timvisee timvisee merged commit b784799 into dev Nov 18, 2025
16 checks passed
@timvisee timvisee deleted the missing-validations-for-shard-transfers branch November 18, 2025 12:08
timvisee pushed a commit that referenced this pull request Nov 25, 2025
* Missing validations for shard transfers

* some more

* fix test
@timvisee timvisee mentioned this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants