-
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.
83249: authors: add Jason Chen to authors r=jason-crl a=jason-crl Release note: None 83455: sql/schemachanger/rel: increase ordinalSet size to 32-bit, test excee… r=ajwerner a=ajwerner …ding it Before this change, we were butting up against the 16-attribute limit for a schema. When it was exceeded, nothing happend except that ordinal values in the ordinalSet were dropped silently. We now validate that a schema does not have too many attributes when constructing the schema. Along the way, we also increase the limit from 14 to 30. Release note: None 83462: multi-tenant: Fix MT testing probability r=knz a=ajstorm The changes in 76582 introduced probabilistic testing within tenants. That PR should have enabled testing in tenants with probability 0.5. A late change was made in that PR which accidentally merged probability 1.0 - meaning that _all_ testing is now occurring in tenants. This PR reverts that change, and applies the intended 0.5 probability so that half of the time we're testing outside of tenants. Release note: None Co-authored-by: Jason Chen <[email protected]> Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Adam Storm <[email protected]>
- Loading branch information
Showing
9 changed files
with
121 additions
and
19 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 |
---|---|---|
|
@@ -200,6 +200,7 @@ Jan Owsiany <[email protected]> | |
Jane Xing <[email protected]> <[email protected]> | ||
Jason E. Aten <[email protected]> | ||
Jason Chan <[email protected]> <[email protected]> | ||
Jason Chen <[email protected]> | ||
Jason Young <[email protected]> | ||
Jay Kominek <[email protected]> | ||
Jay Lim <[email protected]> <[email protected]> <[email protected]> | ||
|
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,30 @@ | ||
// Copyright 2022 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package rel | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
// TestOrdinalSetCapacity ensures that ordinalSet operations | ||
func TestOrdinalSetCapacity(t *testing.T) { | ||
var os ordinalSet | ||
for o := ordinal(0); o <= ordinalSetMaxOrdinal; o++ { | ||
added := os.add(o) | ||
require.NotEqual(t, os, added) | ||
added = os | ||
} | ||
|
||
// Adding a value which is out-of-range should be a no-op. | ||
require.Equal(t, os, os.add(ordinalSetMaxOrdinal+1)) | ||
} |
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
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