-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Feature Request: include source tablet alias in FullStatus
RPC response
#17297
Comments
FullStatus
RPC responseFullStatus
RPC response
Updated to use term "source" only, not "primary", because those aren't always the same thing |
After more thought, perhaps both |
primary_alias is something that can be read from the topo server, so I don't think we need that. Source alias is something that I agree can be useful 👍 |
@GuptaManan100 just Any preference on storing this as |
Latter is good! |
Feature Description
This issue requests that
replicationdatapb.Status
includes the tablet alias of a tablet's currentprimaryreplication sourceToday it appears only the
source_host
andsource_port
of thePRIMARY
are included in this responseThe reason this is useful is VTOrc is having to use the
source_host
+source_port
in sqlite3 queries to find the record of a replica's source, and these fields are unindexed. I considered just-indexing those 2 x fields (I think these fields used to be indexed), but using the tablet alias of the primary would use the Primary-Key and avoid another index, which I prefer. Also this information logically makes sense to be in this output (IMHO)I propose this new field is
topodata.TabletAlias source_alias = 26;
orstring source_alias = 26;
.primary_alias
would work toocc @GuptaManan100 for feedback
Use Case(s)
VTOrc + any future use cases that benefit from an easy lookup of "what source alias is X tablet is replicating from?"
The text was updated successfully, but these errors were encountered: