Use introduced tablet manager RPCs in VTOrc#10467
Use introduced tablet manager RPCs in VTOrc#10467GuptaManan100 merged 16 commits intovitessio:mainfrom
Conversation
18de6e3 to
76aa4af
Compare
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
|
This PR is based on top of #10464 and should be merged after it |
There was a problem hiding this comment.
nit: I don't know which is right, but let's use either UUID or Uuid everywhere and not a mix.
There was a problem hiding this comment.
Ideally, it should be UUID. the Uuid is coming from the proto file which is generated. Unfortunately, there is no way to change that because we keep everything in the proto file lower cased.
There was a problem hiding this comment.
+1 to this (preferring UUID except in the case of protobuf-generated code -- vtadmin does similar things)
if you want (read: you should not do this), you can name the field u_u_i_d and protobuf will treat those as individual words and you'll get UUID in the generated code 🙃 🙃 🙃
There was a problem hiding this comment.
I was considering u_u_i_d too, but then I elected against it 🤣
76aa4af to
8e4353e
Compare
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
…erable Signed-off-by: Manan Gupta <manan@planetscale.com>
…ormation instead Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
…g row image from full status instead of mysql query Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
8e4353e to
f6c5dea
Compare
go/test/endtoend/vtorc/readtopologyinstancebufferable/main_test.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Manan Gupta <manan@planetscale.com>
…) (vitessio#885) * Use introduced tablet manager RPCs in VTOrc (vitessio#10467) * feat: use the new RPC for resetting replication Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: add code to get the full status and use it Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: remove uptime from instance propoerties in VTOrc Signed-off-by: Manan Gupta <manan@planetscale.com> * test: add end to end test for checking the output of ReadInstanceBufferable Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: remove a mysql query for server id, etc and use full status information instead Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: use primary status output instead of mysql query Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: remove semi-sync available, since it is unused Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: use semi sync enable from full status instead of mysql query Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: use semi sync statuses from full status instead of mysql query Signed-off-by: Manan Gupta <manan@planetscale.com> * test: check output of more fields in the test Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: remove ReplicationCredentialsAvailable since it is unused Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: use executed, purged gtid set, server uuid, gtid mode and binlog row image from full status instead of mysql query Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: add testing for replication status fields Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: check for nil values to prevent panics when some fields are empty Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: use replication status from full status instead of mysql query Signed-off-by: Manan Gupta <manan@planetscale.com> * test: add license and shorten package name Signed-off-by: Manan Gupta <manan@planetscale.com> * feat: fix test flakiness Signed-off-by: Manan Gupta <manan@planetscale.com> * feat:fix test to work with mysql 8.0 too Signed-off-by: Manan Gupta <manan@planetscale.com>
Description
This PR uses the RPCs introduced in #10464 in VTOrc.
The RPC
ResetReplicationParametersis used infixPrimaryHasPrimaryto reset the replication parameters for the primary tablet.The RPC
FullStatusis used inReadTopologyInstanceBufferableto read information from MySQL server without connecting directly to it.As part of this refactor, 3 fields from Instance struct have been removed -
Related Issue(s)
Checklist
Deployment Notes