Skip to content

Fix broken replication factor in gRPC create shard key - #5596

Merged
timvisee merged 3 commits into
devfrom
fix-grpc-create-shard-key-replication-factor
Dec 6, 2024
Merged

timvisee merged 3 commits into
devfrom
fix-grpc-create-shard-key-replication-factor

Conversation

@timvisee

@timvisee timvisee commented Dec 6, 2024

Copy link
Copy Markdown
Member

The gRPC interface for creating a new shard key appeared to be broken. Internally it would replace the specified replication factor with the specified number of shards.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo +nightly fmt --all command prior to submission?
  3. Have you checked your code using cargo clippy --all --all-features command?

@timvisee
timvisee requested review from ffuugoo and generall December 6, 2024 10:34
} else {
Some(op.placement)
},
placement: (!op.placement.is_empty()).then_some(op.placement),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🙄

(Sorry, I still hate this. But let's leave it, it almost makes sense......)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

😆 Happy to revert this one

@timvisee
timvisee merged commit 7137180 into dev Dec 6, 2024
@timvisee
timvisee deleted the fix-grpc-create-shard-key-replication-factor branch December 6, 2024 11:01
timvisee added a commit that referenced this pull request Dec 9, 2024
* Fix create shard key in gRPC not using replication factor correctly

* Minor improvements

* Update lib/collection/src/operations/conversions.rs

Co-authored-by: Roman Titov <[email protected]>

---------

Co-authored-by: Roman Titov <[email protected]>
@timvisee timvisee mentioned this pull request Dec 9, 2024
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