cockroachdb / cockroachdb/cockroach

server/application_api: TestAdminAPINonTableStats does not work with secondary tenants

Open
#110,012 0 comments 0 reactions 0 assignees View on GitHub
A-multitenancy A-testing C-bug T-db-server
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Found while investigating #110001.

**Describe the problem**

When `TestAdminAPINonTableStats` is modified to point to a secondary tenant, it starts failing:

```
storage_inspection_test.go:63: status: 500 Internal Server Error, content-type: application/json, body: {
"error": "An internal server error has occurred. Please check your CockroachDB logs for more details.",
"code": 13,
"message": "An internal server error has occurred. Please check your CockroachDB logs for more details.",
"details": [
]
}, error:
```

**To Reproduce**

Start from #110008 and reset the `DefaultTestTenant` parameter.

**Expected behavior**

When pointed to a secondary tenant the test should work. (It's possible to create non-table data in a secondary tenant by using a scratch range)

Epic CRDB-38970
Jira issue: CRDB-31219

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.