-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
90776: lint: update commit message to include issue/epic refs r=nickvigilante a=nickvigilante The standard commit message now includes some help text on including issue and epic references. Fixes #90303 Release note: None 91776: sql: use new zone config read/write path through collection r=chengxiong-ruan a=chengxiong-ruan part of #88571 This is based on #91721 Replace all use cases all metadata updater with the new read/write path of zone configs. 92603: kv: allow secondary tenants to view range metadata for their ranges r=knz a=arulajmani This patch introduces a new GetRangeDescriptorsRPC to scan over range descriptors. The RPC returns a consistent view of range descriptors in the system for ranges that overlap with the requested keyspan. The RPC is setup to allow for a streaming response in the future, but for now, we only return a single response. Care must be taken to uphold the consistency semantics if we were to make use of the streaming behaviour in the future. This RPC is then used to allow secondary tenants to view range metadata for ranges they own. This is done by proxying scans through the `Connector` for secondary tenants, and performing the usual keybound authorization we do in other places. This patch serves as the enabler for secondary tenants to do things like `SHOW RANGES` or have scoped access to `crdb_internal.ranges_no_leases` in the future. Release note: None 92837: acceptance: fix TestComposeGSS r=rafiss a=rail Previously, the TestComposeGSS was broken, because the base docker image (`postgres:11`) used APT repos, that had been moved to a different location. This PR changes the base image to `postgres:15`. The upgrade should be relatively safe. Fixes #91420 Epic: None Release note: None Co-authored-by: Nick Vigilante <[email protected]> Co-authored-by: Chengxiong Ruan <[email protected]> Co-authored-by: Arul Ajmani <[email protected]> Co-authored-by: Rail Aliiev <[email protected]>
- Loading branch information
Showing
81 changed files
with
1,036 additions
and
452 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
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
20 changes: 10 additions & 10 deletions
20
pkg/ccl/benchccl/rttanalysisccl/testdata/benchmark_expectations
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
exp,benchmark | ||
13,AlterPrimaryRegion/alter_empty_database_alter_primary_region | ||
16,AlterPrimaryRegion/alter_empty_database_set_initial_primary_region | ||
13,AlterPrimaryRegion/alter_populated_database_alter_primary_region | ||
17,AlterPrimaryRegion/alter_populated_database_set_initial_primary_region | ||
11,AlterPrimaryRegion/alter_empty_database_alter_primary_region | ||
14,AlterPrimaryRegion/alter_empty_database_set_initial_primary_region | ||
11,AlterPrimaryRegion/alter_populated_database_alter_primary_region | ||
15,AlterPrimaryRegion/alter_populated_database_set_initial_primary_region | ||
11,AlterRegions/alter_empty_database_add_region | ||
13,AlterRegions/alter_empty_database_drop_region | ||
11,AlterRegions/alter_populated_database_add_region | ||
13,AlterRegions/alter_populated_database_drop_region | ||
13,AlterSurvivalGoals/alter_empty_database_from_region_to_zone | ||
13,AlterSurvivalGoals/alter_empty_database_from_zone_to_region | ||
33,AlterSurvivalGoals/alter_populated_database_from_region_to_zone | ||
33,AlterSurvivalGoals/alter_populated_database_from_zone_to_region | ||
11,AlterSurvivalGoals/alter_empty_database_from_region_to_zone | ||
11,AlterSurvivalGoals/alter_empty_database_from_zone_to_region | ||
21,AlterSurvivalGoals/alter_populated_database_from_region_to_zone | ||
21,AlterSurvivalGoals/alter_populated_database_from_zone_to_region | ||
14,AlterTableLocality/alter_from_global_to_rbr | ||
14,AlterTableLocality/alter_from_global_to_regional_by_table | ||
12,AlterTableLocality/alter_from_global_to_regional_by_table | ||
10,AlterTableLocality/alter_from_rbr_to_global | ||
10,AlterTableLocality/alter_from_rbr_to_regional_by_table | ||
14,AlterTableLocality/alter_from_regional_by_table_to_global | ||
12,AlterTableLocality/alter_from_regional_by_table_to_global | ||
14,AlterTableLocality/alter_from_regional_by_table_to_rbr |
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,33 @@ | ||
// Copyright 2022 The Cockroach Authors. | ||
// | ||
// Licensed as a CockroachDB Enterprise file under the Cockroach Community | ||
// License (the "License"); you may not use this file except in compliance with | ||
// the License. You may obtain a copy of the License at | ||
// | ||
// https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt | ||
|
||
package kvtenantccl | ||
|
||
import "github.com/cockroachdb/cockroach/pkg/roachpb" | ||
|
||
// rangeDescIterator is the concrete (private) implementation of the | ||
// rangedesc.Iterator interface used by the Connector. | ||
type rangeDescIterator struct { | ||
rangeDescs []roachpb.RangeDescriptor | ||
curIdx int | ||
} | ||
|
||
// Valid implements the rangedesc.Iterator interface. | ||
func (i *rangeDescIterator) Valid() bool { | ||
return i.curIdx < len(i.rangeDescs) | ||
} | ||
|
||
// Next implements the rangedesc.Iterator interface. | ||
func (i *rangeDescIterator) Next() { | ||
i.curIdx++ | ||
} | ||
|
||
// CurRangeDescriptor implements the rangedesc.Iterator interface. | ||
func (i *rangeDescIterator) CurRangeDescriptor() roachpb.RangeDescriptor { | ||
return i.rangeDescs[i.curIdx] | ||
} |
Oops, something went wrong.