Simply Replication Status proto conversions#10926
Simply Replication Status proto conversions#10926GuptaManan100 merged 5 commits intovitessio:mainfrom
Conversation
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Manan Gupta <manan@planetscale.com>
| string position = 1; | ||
| // These fields should be removed in Vitess 15+ and fully replaced by the io_state and sql_state fields | ||
| // reserved 2, 3; | ||
| // reserved "io_thread_running", "sql_thread_running"; |
There was a problem hiding this comment.
I think we should add this too, no? While we don't have to, it will prevent re-using these names.
There was a problem hiding this comment.
Is re-using a name not correct in proto?
There was a problem hiding this comment.
Names don't really matter for the wire protocol, it is the numbers. The only time names come into play is when a proto is converted to JSON. I'm iffy about whether it is a good idea to re-use names, but we have not reserved them for any of the ones we removed in the past. In that sense this PR is fine.
| string position = 1; | ||
| // These fields should be removed in Vitess 15+ and fully replaced by the io_state and sql_state fields | ||
| // reserved 2, 3; | ||
| // reserved "io_thread_running", "sql_thread_running"; |
There was a problem hiding this comment.
Names don't really matter for the wire protocol, it is the numbers. The only time names come into play is when a proto is converted to JSON. I'm iffy about whether it is a good idea to re-use names, but we have not reserved them for any of the ones we removed in the past. In that sense this PR is fine.
Should probably wait until this is addressed before merging. |
Signed-off-by: Manan Gupta <manan@planetscale.com>
…n-thread-status Signed-off-by: Manan Gupta <manan@planetscale.com>
mattlord
left a comment
There was a problem hiding this comment.
Thanks again, @GuptaManan100 !
Description
Since v14 has happened, we can simplify the proto to and from conversions of
ReplicationStatus. The test for the same has also been changed to only expect the IOState and SqlState to be specified.The proto fields of io_thread_running and sql_thread_running have been marked reserved.
Related Issue(s)
Checklist
Deployment Notes