Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Global routing doesn't work with tables not in vschema despite schema tracking #16516

Closed
GuptaManan100 opened this issue Aug 1, 2024 · 1 comment

Comments

@GuptaManan100
Copy link
Member

GuptaManan100 commented Aug 1, 2024

Feature Description

If there are some tables that aren't specified in the vschema (This can be the case especially for unsharded keyspaces), then global routing doesn't work for them despite schema tracking running.

It would be nice if we could get the following scenario to work -

  1. A user sets up 2 keyspaces, one of which is unsharded.
  2. They create a table in the unsharded keyspace but don't add it to the Vschema.
  3. If schema tracking is running, if the table created has a globally unique name, then we should support global routing on it.

Use Case(s)

Described ☝️

@GuptaManan100
Copy link
Member Author

Global routing rules originally wasn't meant to work for tables that aren't part of the vschema. We tried addressing this limitation in #16517, but we ran into an issue with MoveTables as described in #16517 (comment).

There is no easy way to resolve this issue, so we after internal discussion we concluded that we won't be able to support this feature request. For global routing to work for tables created in an unsharded keyspace, they should be added to the vschema. To do this, the vschema can be updated and applied by the vtctld, or a DDL statement like ALTER VSCHEMA ADD TABLE keyspace_name.table_name can be run from the vtgate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant