We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Despite receiving SIGKILL, VTTablet still marked as SERVING by VTGate.
./101_initial_cluster.sh
kill -9 `pgrep vttablet | tail -n 1`
From the vtgate logs, HealthCheckUpdate does appear to update the rdonly's serving status to false:
HealthCheckUpdate
==> vtgate.INFO <== I0209 00:38:32.330542 10475 tablet_health_check.go:111] HealthCheckUpdate(Serving State): tablet: zone1-102 (localhost) serving true => false for commerce/0 (RDONLY) reason: vttablet: rpc error: code = Unavailable desc = transport is closing
However, vtgate still shows the rdonly vttablet as SERVING:
mysql --host 127.0.0.1 --port 15306 -e "show vitess_tablets" +-------+----------+-------+------------+---------+------------------+-----------+----------------------+ | Cell | Keyspace | Shard | TabletType | State | Alias | Hostname | MasterTermStartTime | +-------+----------+-------+------------+---------+------------------+-----------+----------------------+ | zone1 | commerce | 0 | MASTER | SERVING | zone1-0000000100 | localhost | 2021-02-09T08:37:04Z | | zone1 | commerce | 0 | REPLICA | SERVING | zone1-0000000101 | localhost | | | zone1 | commerce | 0 | RDONLY | SERVING | zone1-0000000102 | localhost | | +-------+----------+-------+------------+---------+------------------+-----------+----------------------+
And will still route queries to it:
mysql --host 127.0.0.1 --port 15306 @rdonly -e "show tables" ERROR 1105 (HY000) at line 1: vtgate: http://localhost:15001/: target: commerce.0.rdonly, used tablet: zone1-102 (localhost): vttablet: Connection Closed
Once VTGate is restarted, rdonly tablet is properly marked as NOT_SERVING:
mysql --host 127.0.0.1 --port 15306 -e "show vitess_tablets" +-------+----------+-------+------------+-------------+------------------+-----------+----------------------+ | Cell | Keyspace | Shard | TabletType | State | Alias | Hostname | MasterTermStartTime | +-------+----------+-------+------------+-------------+------------------+-----------+----------------------+ | zone1 | commerce | 0 | MASTER | SERVING | zone1-0000000100 | localhost | 2021-02-09T08:37:04Z | | zone1 | commerce | 0 | REPLICA | SERVING | zone1-0000000101 | localhost | | | zone1 | commerce | 0 | RDONLY | NOT_SERVING | zone1-0000000102 | localhost | | +-------+----------+-------+------------+-------------+------------------+-----------+----------------------+
Version: 10.0.0-SNAPSHOT (Git revision 676911a branch 'master') built on Mon Feb 8 22:37:54 PST 2021 by gary@planetscale using go1.15.6 linux/amd64
The text was updated successfully, but these errors were encountered:
deepthi
Successfully merging a pull request may close this issue.
Overview of the Issue
Despite receiving SIGKILL, VTTablet still marked as SERVING by VTGate.
Reproduction Steps
./101_initial_cluster.sh
From the vtgate logs,
HealthCheckUpdate
does appear to update the rdonly's serving status to false:However, vtgate still shows the rdonly vttablet as SERVING:
And will still route queries to it:
Once VTGate is restarted, rdonly tablet is properly marked as NOT_SERVING:
Binary version
Version: 10.0.0-SNAPSHOT (Git revision 676911a branch 'master') built on Mon Feb 8 22:37:54 PST 2021 by gary@planetscale using go1.15.6 linux/amd64
Log Fragments
The text was updated successfully, but these errors were encountered: