-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: TestRaceWithBackfill failed #104655
Comments
The index scrub query is issued as an internal transaction and looks something like:
where From comments in kv, it looks like this error comes up if a request's read timestamp is below the range's GC threshold. I think KV will need to look into why it was unable to produce a good read timestamp and advise if there are ways that we can make this query more resilient. |
@rharding6373 Do you happen to have the logs/artifacts? They are no longer present in TeamCity. |
Batch timestamp is I wonder why the GC threshold was not like 24h ago, but almost "right now" while the test was running. Probably because of this: cockroach/pkg/sql/schema_changer_test.go Lines 622 to 623 in 0ddbe83
The cockroach/pkg/sql/schema_changer_test.go Lines 1038 to 1040 in 0ddbe83
Fix should probably be as simple as adding this call. |
Returning this back to SQL as this seems like a bug in the test. |
Thanks @pavelkalinnikov for the pointers! I'll put a fix out now. |
104763: sql: rationalize the handling of comments and improve performance r=rafiss a=rafiss rebase of #95431 fixes #102851 Prior to this patch, we had a weird translation going in `kv_catalog_comments`, which was causing the tree of objects to be traversed 6 times (one per comment type), and then the rows to be mapped one by one again in `pg_description` / `pg_shdescription`. This made no sense - it should be possible to push a predicate on `pg_description` down to a virtual index on `kv_catalog_comments`, and this requires the column types to align and no computation to happen in-between. This commit simplifies all this by having `kv_catalog_comments` responsible for preparing the data in the format expected by the `pg_` tables. The number of roundtrips needed for an ORM query that uses pg_description dropped to 4, from 134. ``` goos: linux goarch: amd64 cpu: Intel(R) Xeon(R) CPU @ 2.80GHz │ /tmp/tmp.0yUMg6OauX/bench.6abe1851d83 │ /tmp/tmp.0yUMg6OauX/bench.89a494eb3010b945ae5a2be7a057e50802b231c0 │ │ sec/op │ sec/op vs base │ ORMQueries/introspection_description_join-24 10687.1m ± 1% 144.1m ± 8% -98.65% (p=0.000 n=10) │ /tmp/tmp.0yUMg6OauX/bench.6abe1851d83 │ /tmp/tmp.0yUMg6OauX/bench.89a494eb3010b945ae5a2be7a057e50802b231c0 │ │ roundtrips │ roundtrips vs base │ ORMQueries/introspection_description_join-24 134.000 ± 0% 4.000 ± 0% -97.01% (p=0.000 n=10) │ /tmp/tmp.0yUMg6OauX/bench.6abe1851d83 │ /tmp/tmp.0yUMg6OauX/bench.89a494eb3010b945ae5a2be7a057e50802b231c0 │ │ B/op │ B/op vs base │ ORMQueries/introspection_description_join-24 3846.69Mi ± 0% 38.98Mi ± 6% -98.99% (p=0.000 n=10) │ /tmp/tmp.0yUMg6OauX/bench.6abe1851d83 │ /tmp/tmp.0yUMg6OauX/bench.89a494eb3010b945ae5a2be7a057e50802b231c0 │ │ allocs/op │ allocs/op vs base │ ORMQueries/introspection_description_join-24 45566.9k ± 0% 433.3k ± 6% -99.05% (p=0.000 n=10) ``` Release note: None 105069: sql: disable strict gc ttl enforcement in schema changer test r=rharding6373 a=rharding6373 Before this change, the TestRaceWithBackfill test would add a zone config to force garbage collection to happen frequently, however this could cause a race between batch timestamps and garbage collection thresholds. This change adds a call to `DisableGCTTLStrictEnforcement`, which is supposed to be called before updating the zone config with `AddImmediateGCZoneConfig` for testing purposes. Epic: None Fixes: #104655 Release note: None 105156: roachtest: fix tpchvec in some cases r=yuzefovich a=yuzefovich We recently introduced a minor bug in the tpchvec in c5c7ead where could use uninitialized helper to parse the test output, which can lead to a nil pointer when the slowness threshold is exceeded, and this is now fixed. Epic: None Release note: None Co-authored-by: Rafi Shamim <[email protected]> Co-authored-by: rharding6373 <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]>
sql.TestRaceWithBackfill failed with artifacts on release-22.2 @ f38ef200f5f1d9f87fba0d5f2956b7fdd7c539b1:
Parameters:
TAGS=bazel,gss,deadlock
Help
See also: How To Investigate a Go Test Failure (internal)
This test on roachdash | Improve this report!
Jira issue: CRDB-28655
The text was updated successfully, but these errors were encountered: