-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-3169: Remove setting num_replicas from client API and harden Crea…
…teTable validation in CatalogManager Summary: It used to be that we were still supporting a client side override for num_replicas during CreateTable. Once we introduced the concept of PlacementInfo, we piggybacked on it to setting num_replicas inside it, which lead to some hacky code for handing both CreateTable providing PlacementInfo (even if just to set num_replicas) and the cluster already having some in the config. To remove the ambiguity, I've removed the API to set num_replicas from YBClient all together and we will have to add it back when we fully support overrides (#149). Test Plan: Fixed unit tests. Tested with custom placement, including placement_uuid in `yb-ctl` and `yb-admin`. Reviewers: mikhail, robert, oleg, bharat Reviewed By: bharat Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D4591
- Loading branch information
Showing
40 changed files
with
181 additions
and
206 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
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
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
Oops, something went wrong.