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

Backport to release-14.0: Adds RPCs to vttablet that vtorc requires (#10464) #10546

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

GuptaManan100
Copy link
Member

Description

Backport of #10464

Related Issue(s)

Checklist

  • "Backport me!" label has been added if this change should be backported
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

* feat: add vttablet rpc to reset replication parameters

Signed-off-by: Manan Gupta <[email protected]>

* feat: added end to end testing for the rpc and fixed bug

Signed-off-by: Manan Gupta <[email protected]>

* feat: fix typing error

Signed-off-by: Manan Gupta <[email protected]>

* feat: add basic full status rpc functionality and add test for it

Signed-off-by: Manan Gupta <[email protected]>

* feat: add all the fields needed in full status

Signed-off-by: Manan Gupta <[email protected]>

* test: moved the test to reparent tests and improved it

Signed-off-by: Manan Gupta <[email protected]>

* feat: bug fix for no replication status and no primary status

Signed-off-by: Manan Gupta <[email protected]>

* feat: add version to the full status output

Signed-off-by: Manan Gupta <[email protected]>

* feat: add binlog information to full status

Signed-off-by: Manan Gupta <[email protected]>

* docs: fix the comment explaining the binlog information

Signed-off-by: Manan Gupta <[email protected]>

* feat: add semi-sync statuses to full status

Signed-off-by: Manan Gupta <[email protected]>

* feat: call the correct command

Signed-off-by: Manan Gupta <[email protected]>

* feat: add server uuid and id to full status

Signed-off-by: Manan Gupta <[email protected]>

* feat: make server_id a uint32 to accept the correct range of values

Signed-off-by: Manan Gupta <[email protected]>

* feat: add few more fields to the full status like version comment, semi-sync settings, binlog_row_image

Signed-off-by: Manan Gupta <[email protected]>

* feat: generate vtadmin proto files

Signed-off-by: Manan Gupta <[email protected]>

* test: add assertion to check binlog row format is read correctly

Signed-off-by: Manan Gupta <[email protected]>

* feat: split GTID mode in its own function because mariadb doesn't support it

Signed-off-by: Manan Gupta <[email protected]>

* feat: fix parsing of empty mariadb gtid set

Signed-off-by: Manan Gupta <[email protected]>

* docs: add doucmentation for existing fields in ReplicationStatus

Signed-off-by: Manan Gupta <[email protected]>

* feat: add relay log file position to the replication status output

Signed-off-by: Manan Gupta <[email protected]>

* test: augmented full status test to check all the different positions stored

Signed-off-by: Manan Gupta <[email protected]>

* feat: add additional fields to replication status and read source user

Signed-off-by: Manan Gupta <[email protected]>

* feat: read sql delay from show replica status output

Signed-off-by: Manan Gupta <[email protected]>

* feat: read ssl allowed from show replica status output

Signed-off-by: Manan Gupta <[email protected]>

* feat: read has replication filters from show replica status output

Signed-off-by: Manan Gupta <[email protected]>

* feat: read auto position and using gtid from show replica status output

Signed-off-by: Manan Gupta <[email protected]>

* feat: add replication lag unknown too to replication status

Signed-off-by: Manan Gupta <[email protected]>

* feat: return nils from replication and primary postiion if it is not present

Signed-off-by: Manan Gupta <[email protected]>

* feat: rename FileRelayLogPosition in replication status output to RelayLogSourceBinLogEquivalentPosition and augment test to make sure rpc changes are backward compatible

Signed-off-by: Manan Gupta <[email protected]>

* feat: update vtadmin proto files

Signed-off-by: Manan Gupta <[email protected]>

* refactor: rename BinLog to binlog in renamed proto field

Signed-off-by: Manan Gupta <[email protected]>
@GuptaManan100 GuptaManan100 added Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Cluster management Backport This is a backport Component: VTorc Vitess Orchestrator integration release notes labels Jun 20, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 20, 2022

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • If this is a change that users need to know about, please apply the release notes (needs details) label so that merging is blocked unless the summary release notes document is included.
  • If a new flag is being introduced, review whether it is really needed. The flag names should be clear and intuitive (as far as possible), and the flag's help should be descriptive.
  • If a workflow is added or modified, each items in Jobs should be named in order to mark it as required. If the workflow should be required, the GitHub Admin should be notified.

Bug fixes

  • There should be at least one unit or end-to-end test.
  • The Pull Request description should either include a link to an issue that describes the bug OR an actual description of the bug and how to reproduce, along with a description of the fix.

Non-trivial changes

  • There should be some code comments as to why things are implemented the way they are.

New/Existing features

  • Should be documented, either by modifying the existing documentation or creating new documentation.
  • New features should have a link to a feature request issue or an RFC that documents the use cases, corner cases and test cases.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • vtctl command output order should be stable and awk-able.

@deepthi
Copy link
Member

deepthi commented Jun 21, 2022

A bit late to be adding things to release-14.0, but we need this in order to allow people who are already using vtorc to upgrade from v14 to v15 without disruption. Technically vtorc in 14.0 is still experimental, but we wanted to go that extra mile for anyone who is already using it in production or planning to do so in v14.
Most of the changes here are additive - RPCs and protobuf messages that are not used. Beyond that there are some struct field name changes + proto field rename.

proto/replicationdata.proto Outdated Show resolved Hide resolved
@GuptaManan100 GuptaManan100 merged commit 3198c87 into vitessio:release-14.0 Jun 22, 2022
@GuptaManan100 GuptaManan100 deleted the vtorc-rpc-backport branch June 22, 2022 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport This is a backport Component: Cluster management Component: VTorc Vitess Orchestrator integration Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants