debug: `clusters/x` subfolder contains wrong tenant's info
I was looking at a debug.zip from a 25.1 MT cluster in a roachtest and was confused as data relevant to the application tenant looked strange and was missing certain jobs or tables I expected to see in it. Eventually I realized that the content of the tenant subfolder was actually just a second dump of the system tenant's tables and the virtual cluster's tables were not present in the zip at all. I've attached the zip in question, taken from our public roachtests.
On inspecting the logs captured by the test and emitted during the production of this zip, we see the zip command was invoked as cockroach debug zip debug.zip ... --url 'postgres://...options=-ccluster%3Dsystem&sslcert...'
The zip command then logged it was discovering virtual clusters and then logged this line:
[cluster] ... using SQL connection URL: postgresql://...&options=-ccluster%3Dsystem&options=-ccluster%3Dmixed-version-tenant-hpdr5&sslcert=...
It seems possible that the duplicate ccluster param in in this URI with contradictory argument values could be relevant here.
Jira issue: CRDB-49072
Epic CRDB-52093
Hi @dt, please add branch-* labels to identify which branch(es) this C-bug affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Hi @dt, please add branch-* labels to identify which branch(es) this release-blocker affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
cc @aa-joshi
Thanks for the initial analysis David! You are right with multiple --ccluster values. When we are trying to generate Debug.zip for UA tenants, We are additionally passing system as default virtual cluster name here. This might not be not required as during the debug.zip generation we pass the tenant name in --ccluster to fetch tenant specific tables. In the debug.zip generation, we clone the base URL and add the the tenant name. Due to this, 2 values are getting pass for --ccluster and first value is getting honoured.
@cockroachdb/test-eng Could you please check whether we can remove default virtual name during the URL generation?
cc @cockroachdb/test-eng
This issue has multiple T-eam labels. Please make sure it only has one, or else issue synchronization will not work correctly.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Please add branch-* labels to identify which branch(es) this C-bug affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.