-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
102079: kv: unit test `txnMetricRecorder` r=nvanbenschoten a=nvanbenschoten Addresses a TODO to wrap unit tests directly around this struct, like we do for the other txnInterceptor. I plan to add a new metric to `txnMetricRecorder`, so it makes sense to improve testing first. Epic: None Release note: None 111424: kvcoord: keep refresh spans after savepoint rollback r=nvanbenschoten a=miraradeva Previously, when a read occurred between SAVEPOINT and ROLLBACK TO SAVEPOINT, upon rollback the read was removed from the transaction's refresh spans. If the transaction's read and write timestamps diverged, this read would not be refreshed, which could lead to a serializability violation. Moreover, this behavior diverged from the Postgres behavior, which considers reads in a subtransaction to belong to the parent transaction (https://github.com/postgres/postgres/blob/master/src/backend/storage/lmgr/README-SSI#L461-L467). The previous behavior was an intentional design choice, which made sense at the time with the intention of using savepoints to recover from serialization errors; however, this was never implemented. After some discussions, we have decided to match the Postgres behavior instead. This patch adresses the issue by ensuring that all refresh spans accumulated since a savepoint was created are kept after the savepoint is rolled back. We don't expect this new behavior to impact customers because they should already be able to handle serialization errors; in case any unforeseen customer issues arise, this patch also includes a private cluster setting to revert to the old behavior. Fixes: #111228 Release note (sql change): Reads rolled back by savepoints are now refreshable, matching the Postgres behavior and avoiding potential serializability violations. 114681: stress: tweak args for `deadlock` and `race` nightlies r=jlinder a=rickystewart Increase timeouts, reduce the number of test runs, unset GITHUB_API_TOKEN for nightlies that aren't working fully yet. Also set `GOTRACEBACK=all` for all EngFlow tests. Epic: [CRDB-8308](https://cockroachlabs.atlassian.net/browse/CRDB-8308) Release note: None 114709: fipsccl: Add interfaces to expose FIPS-readiness status r=bdarnell a=bdarnell - CLI tool `cockroach debug enterprise-check-fips` for detailed diagnostics - Global CLI flag `--enterprise-require-fips-ready` to abort if FIPS checks fail - SQL function `crdb_internal.fips_ready()` to check at runtime Closes #114344 Even though FIPS is security-related (and I added a `securityccl` package to be owned by `@cockroachdb/prodsec),` this PR is really more build wrangling than anything significant from a security perspective. Co-authored-by: Nathan VanBenschoten <[email protected]> Co-authored-by: Mira Radeva <[email protected]> Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Ben Darnell <[email protected]>
- Loading branch information
Showing
54 changed files
with
876 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
subtest fips_ready | ||
|
||
# We do not have the plumbing that would let test cases know whether they are | ||
# running in a fips environment or not so this is just a very basic test to | ||
# make sure that all the registration, oids, etc work properly. | ||
query _ | ||
SELECT crdb_internal.fips_ready() | ||
---- | ||
_ | ||
|
||
user testuser | ||
|
||
statement error pq: crdb_internal\.fips_ready\(\): user testuser does not have VIEWCLUSTERSETTING system privilege | ||
SELECT crdb_internal.fips_ready() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
pkg/ccl/logictestccl/tests/fakedist-vec-off/generated_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.