Skip to content

Update VTOrc flags to include --change-tablets-with-errant-gtid-to-drained#1574

Closed
GuptaManan100 wants to merge 3 commits intovitessio:prodfrom
planetscale:vtorc-errant-gtid-type-change
Closed

Update VTOrc flags to include --change-tablets-with-errant-gtid-to-drained#1574
GuptaManan100 wants to merge 3 commits intovitessio:prodfrom
planetscale:vtorc-errant-gtid-type-change

Conversation

@GuptaManan100
Copy link
Contributor

This PR adds the docs for the PR vitessio/vitess#13873

Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
@netlify
Copy link

netlify bot commented Sep 4, 2023

Deploy Preview for vitess ready!

Name Link
🔨 Latest commit 0c16375
🔍 Latest deploy log https://app.netlify.com/sites/vitess/deploys/64f5c7a9469c31000877d636
😎 Deploy Preview https://deploy-preview-1574--vitess.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

| --clusters_to_watch | strings | Comma-separated list of keyspaces or keyspace/shards that this instance will monitor and repair. Defaults to all clusters in the topology. Example: "ks1,ks2/-80" |
| --config | string | config file name |
| --consul_auth_static_file | string | JSON File to read the topos/tokens from. |
| --convert-tablets-with-errant-gtids | boolean | Whether VTOrc should be changing the type of the tablets with errant GTIDs to `DRAINED` |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goland reformats the table, but only this line has been added.

@netlify
Copy link

netlify bot commented Sep 4, 2023

Deploy Preview for vitess ready!

Name Link
🔨 Latest commit abcbead
🔍 Latest deploy log https://app.netlify.com/sites/vitess/deploys/64f9739458eb270008c50bec
😎 Deploy Preview https://deploy-preview-1574--vitess.netlify.app/docs/18.0/reference/programs/vtorc
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Manan Gupta <manan@planetscale.com>
@@ -26,81 +26,82 @@ vtorc \

The following command line options apply to VTOrc:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to just link to the reference page now?

(and update those via make vtorc-docs, see vitessio/vitess#13918

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the reference page, right?
I updated it manually, but I guess I can use the make vtorc-docs command to copy over from now on?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shoot, i meant https://vitess.io/docs/18.0/reference/programs/vtorc/, which is now autogenerated from cobra

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, I'll refactor this PR 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get this error when I try to run the make command -

VITESS_DIR=/Users/manangupta/vitess make vtorc-docs
go run ./tools/cobradocs/ --vitess-dir "/Users/manangupta/vitess" --version-pairs ""main:16.0,v15.0.2:15.0"" vtorc
2023/09/14 12:08:43 cannot find directory for doc version main:16.0 (index=0): stat /Users/manangupta/website/content/en/docs/16.0/reference/programs/vtorc: no such file or directory
exit status 1
make: *** [vtorc-docs] Error 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I am getting this error 😢

VITESS_DIR=/Users/manangupta/vitess COBRADOC_VERSION_PAIRS="HEAD:18.0" make vtorc-docs 
go run ./tools/cobradocs/ --vitess-dir "/Users/manangupta/vitess" --version-pairs "HEAD:18.0" vtorc
2023/09/18 09:30:49 exit status 1
exit status 1
make: *** [vtorc-docs] Error 1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rebase on prod so the content/en/docs/18.0/reference/programs/vtorc directory exists (there's a --debug flag you can manually add to the binary, btw)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see just now #1588

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just saw that main already has the flag changes for that directory because of #1583. I'll close this PR now. Thanks for all the help.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry about that! those diffs get kinda big so i didn't notice to point it out :/

@deepthi deepthi changed the title Update VTOrc flags to include --convert-tablets-with-errant-gtids Update VTOrc flags to include --change-tablets-with-errant-gtid-to-drained Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants