-
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
85138: importer/kv: add ImportEpoch field to MVCCValueHeader and write to it during IMPORT INTO r=dt,erikgrinaker a=msbutler storage: add ImportEpoch field to MVCCValueHeader This patch adds the ImportEpoch field to an MVCCValue's MVCCValueHeader, which allows kv clients (namely the sst_batcher in an IMPORT INTO) to write the importing table's ImportEpoch to the metadata of each ingesting MVCCValue. Unlike the MVCCValueHeader.LocalTimestamp field, the ImportEpoch field should be exported to other clusters (e.g. via ExportRequests from BACKUP/RESTORE and streaming). Consequently, this PR relaxes the invariant that the MVCCValueHeader field must be stripped in an Export Request and must be empty in an AddSSTable Request. Now, Export Request only strips the MVCCValueHeader.LocalTimestamp field and AddSSTable will only require the LocalTimestamp to be empty. Release note: none ---- bulk/kv write the table's ImportEpoch to each MVCCValue during IMPORT This patch makes IMPORT INTO on a non-empty table write the table's ImportEpoch to each ingested MVCC Value, via the SSTBatcher. In a future PR, the ImportEpoch will be used to track and rollback an IMPORT INTO. This additional information will allow IMPORTing tables to be backed up and restored, as described in this [RFC](https://docs.google.com/document/d/16TbkFznqbsu3mialSw6o1sxOEn1pKhhJ9HTxNdw0-WE/edit#heading=h.bpox0bmkz77i). Informs #76722 Release note: None 120080: sql: remove default_target_cluster.check_service.enabled r=dt a=dt Release note (enterprise change): default_target_cluster can now be set to any tenant name by default, including a tenant yet to be created or have service started. Epic: none. 120342: roachtest: admission-control/elastic-io deflake r=sumeerbhola a=aadityasondhi Similar to #114446, we now take the mean over the last two minutes for determining high L0 sublevel count. Fixes #119838. Release note: None 120350: backfill: finish the tracing span after closing the account r=yuzefovich a=yuzefovich We recently fixed an issue where we forgot to stop the index backfill merger monitor, but we had a minor bug in that fix - we captured the context that contains the tracing span that is finished before the account is closed leading to "use after finish" assertions. This is now fixed. Fixes: #120266. Release note: None 120356: cmd: link on the `large` pool r=jlinder a=rickystewart The `default` pool seems to be too small to perform linking efficiently. This should speed things up. Epic: CRDB-8308 Release note: None 120359: logictest: skip some tests under `race` r=jlinder a=rickystewart These tests specifically are prone to failing/timing out under `race`. Epic: CRDB-8308 Release note: None 120361: roachtest: bump max ranges threshold in splits/load/ycsb/e/nodes=3/obj=cpu r=nvanbenschoten a=nvanbenschoten Fixes #120163. Avoids rare test flakes. Release note: None 120363: go.mod: bump Pebble to 51faab0a3555 r=aadityasondhi a=jbowens Changes: * [`51faab0a`](cockroachdb/pebble@51faab0a) tool: add DirectoryLock option * [`ec69e9a2`](cockroachdb/pebble@ec69e9a2) ingest test: fix merge skew * [`635c6003`](cockroachdb/pebble@635c6003) manifest: add VersionEdit tests with virtual tables * [`cb660884`](cockroachdb/pebble@cb660884) manifest: improve VersionEdit stringification * [`31b37248`](cockroachdb/pebble@31b37248) ingest_test: support reopening in ingest tests * [`64ebec94`](cockroachdb/pebble@64ebec94) ingest_test: set correct sizes for external ingests * [`4bf09d5e`](cockroachdb/pebble@4bf09d5e) manifest: improve VersionEdit tests * [`a034560d`](cockroachdb/pebble@a034560d) manifest: add a helper for DebugString parsing * [`623524f1`](cockroachdb/pebble@623524f1) manifest: use Lx for levels in version String/DebugString Release note: none. Epic: none. Co-authored-by: Michael Butler <[email protected]> Co-authored-by: David Taylor <[email protected]> Co-authored-by: Aaditya Sondhi <[email protected]> Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: Nathan VanBenschoten <[email protected]> Co-authored-by: Jackson Owens <[email protected]>
- Loading branch information
Showing
54 changed files
with
644 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1693,10 +1693,10 @@ def go_deps(): | |
patches = [ | ||
"@com_github_cockroachdb_cockroach//build/patches:com_github_cockroachdb_pebble.patch", | ||
], | ||
sha256 = "f68528557224c2af2fd0b46199602f982fd44f813029040a1f3ceaf134633dc0", | ||
strip_prefix = "github.com/cockroachdb/[email protected]20240308204553-8df4320c24e4", | ||
sha256 = "bffe4ef26087a4e25f9deaad87ed1ea9849d3ea6032badce7cacb919d6614cc6", | ||
strip_prefix = "github.com/cockroachdb/[email protected]20240312180812-51faab0a3555", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20240308204553-8df4320c24e4.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20240312180812-51faab0a3555.zip", | ||
], | ||
) | ||
go_repository( | ||
|
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
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
Oops, something went wrong.