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

Bug Report: VTCombo does not create VSchema in topo #16088

Closed
brendar opened this issue Jun 10, 2024 · 2 comments · Fixed by #16094
Closed

Bug Report: VTCombo does not create VSchema in topo #16088

brendar opened this issue Jun 10, 2024 · 2 comments · Fixed by #16094

Comments

@brendar
Copy link
Contributor

brendar commented Jun 10, 2024

Overview of the Issue

After starting a keyspace with vtcombo/vttestserver I would expect to be able to get the VSchema for that keyspace, but attempting to do so will result in a node doesn't exist error.

Reproduction Steps

Terminal 1

vttestserver --keyspaces "foo" --num_shards 1

Terminal 2:

vtctldclient --server 127.0.0.1:11151 GetVSchema foo
E0610 13:30:19.281856   86894 main.go:56] rpc error: code = Unknown desc = node doesn't exist: keyspaces/foo/VSchema

Binary Version

Impacts main and previous releases

Operating System and Environment details

n/a

Log Fragments

No response

@brendar brendar added Needs Triage This issue needs to be correctly labelled and triaged Type: Bug labels Jun 10, 2024
@mattlord
Copy link
Contributor

mattlord commented Jul 2, 2024

Confirmed on main:

❯ make build
Tue Jul 2 14:25:24 EDT 2024: Building source tree

❯ vttestserver --keyspaces "foo" --num_shards 1
...
{"bind_address":"localhost","grpc_port":20902,"mysql":20903,"port":20901,"socket":"/opt/vtdataroot/vttest143063516/vt_0000000001/mysql.sock","vtcombo_mysql_port":20904}

❯ vtctldclient --server localhost:20902 GetVSchema foo
E0702 14:30:00.733294   76503 main.go:56] rpc error: code = Unknown desc = node doesn't exist: keyspaces/foo/VSchema

❯ vtctldclient --server localhost:20902 ApplyVSchema --vschema="{}" foo
New VSchema object:
{
  "sharded": false,
  "vindexes": {},
  "tables": {},
  "require_explicit_routing": false,
  "foreign_key_mode": "unspecified",
  "multi_tenant_spec": null
}
If this is not what you expected, check the input data (as JSON parsing will skip unexpected fields).

❯ vtctldclient --server localhost:20902 GetVSchema foo
{
  "sharded": false,
  "vindexes": {},
  "tables": {},
  "require_explicit_routing": false,
  "foreign_key_mode": "unspecified",
  "multi_tenant_spec": null
}

@brendar
Copy link
Contributor Author

brendar commented Jul 3, 2024

Thanks for confirming @mattlord. There's a PR here if you get a chance to look at it: #16094

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.

2 participants