-
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.
Merge pull request #100032 from andyyang890/backport23.1-99533
release-23.1: sql,backupccl: add more tests for user ID migrations
- Loading branch information
Showing
24 changed files
with
75 additions
and
4 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
File renamed without changes.
Binary file modified
BIN
+26 Bytes
(100%)
...ckupccl/testdata/restore_old_versions/system-privileges-restore/v22.2.6/BACKUP-STATISTICS
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
...backupccl/testdata/restore_old_versions/system-privileges-restore/v22.2.6/BACKUP_MANIFEST
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
.../testdata/restore_old_versions/system-privileges-restore/v22.2.6/BACKUP_MANIFEST-CHECKSUM
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 +1 @@ | ||
U�IS | ||
���� |
Binary file removed
BIN
-1.68 KB
...stdata/restore_old_versions/system-privileges-restore/v22.2.6/data/849140167931461633.sst
Binary file not shown.
Binary file removed
BIN
-1.16 KB
...stdata/restore_old_versions/system-privileges-restore/v22.2.6/data/849140168228208642.sst
Binary file not shown.
Binary file removed
BIN
-1.15 KB
...stdata/restore_old_versions/system-privileges-restore/v22.2.6/data/849140168235778051.sst
Binary file not shown.
Binary file added
BIN
+1.84 KB
...stdata/restore_old_versions/system-privileges-restore/v22.2.6/data/850743486781980673.sst
Binary file not shown.
Binary file added
BIN
+1.04 KB
...stdata/restore_old_versions/system-privileges-restore/v22.2.6/data/850743487039143939.sst
Binary file not shown.
Binary file added
BIN
+1.23 KB
...stdata/restore_old_versions/system-privileges-restore/v22.2.6/data/850743487047237634.sst
Binary file not shown.
Binary file added
BIN
+2.75 KB
...bdfcdcdc5cdcac5cfc7d1cdc8c9cdcac6dfd4cfcfcfcfdfaaabbcdf92c2d4c6c6d1c7c6c7c6cec6c8cecffffe
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...cdcac5cfc7d1cdc8c9cdcac6dfd4cfcfcfcfdfaaabbcdf92c2d4c6c6d1c7c6c7c6cec6c8cecffffe-CHECKSUM
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 @@ | ||
B:�| |
Binary file added
BIN
+2.66 KB
...bdfcdcdc5cdcac5cfc8d1c6c7cfcbc7cedfd4cfcfcfcfdfaaabbcdf92c2d4c6c6d1c9cfcccecbcdcccccafffe
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...cdcac5cfc8d1c6c7cfcbc7cedfd4cfcfcfcfdfaaabbcdf92c2d4c6c6d1c9cfcccecbcdcccccafffe-CHECKSUM
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 @@ | ||
�w |
Binary file removed
BIN
-2.75 KB
...fcfc9c5cccfc5cecbd1cdcdc7cbcbcbdfd4cfcfcfcfdfaaabbcdf92c2d4cccecbd1cccfcccbcbccc7c8c9fffe
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...cfc5cecbd1cdcdc7cbcbcbdfd4cfcfcfcfdfaaabbcdf92c2d4cccecbd1cccfcccbcbccc7c8c9fffe-CHECKSUM
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-2.66 KB
...fcfc9c5cccfc5ceccd1c6cfcbcbc9cddfd4cfcfcfcfdfaaabbcdf92c2d4ccceccd1c6c8c6cbcac7c9cdc9fffe
Binary file not shown.
1 change: 0 additions & 1 deletion
1
...cfc5ceccd1c6cfcbcbc9cddfd4cfcfcfcfdfaaabbcdf92c2d4ccceccd1c6c8c6cbcac7c9cdc9fffe-CHECKSUM
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
pkg/sql/logictest/testdata/logic_test/mixed_version_database_role_settings_role_id
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,27 @@ | ||
# LogicTest: cockroach-go-testserver-upgrade-to-master | ||
|
||
# Set default session variables in a mixed version cluster. | ||
|
||
statement ok | ||
CREATE USER testuser1 | ||
|
||
upgrade 1 | ||
|
||
user root nodeidx=1 | ||
|
||
statement ok | ||
ALTER ROLE ALL SET timezone = 'America/New_York' | ||
|
||
statement ok | ||
ALTER ROLE testuser1 SET application_name = 'my app' | ||
|
||
user root nodeidx=2 | ||
|
||
statement ok | ||
ALTER ROLE testuser1 SET index_recommendations_enabled = false | ||
|
||
query TT | ||
SELECT role_name, settings FROM system.database_role_settings | ||
---- | ||
· {timezone=America/New_York} | ||
testuser1 {"application_name=my app",index_recommendations_enabled=false} |
27 changes: 27 additions & 0 deletions
27
pkg/sql/logictest/testdata/logic_test/mixed_version_system_privileges_user_id
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,27 @@ | ||
# LogicTest: cockroach-go-testserver-upgrade-to-master | ||
|
||
# Grant system privileges in a mixed version cluster. | ||
|
||
statement ok | ||
CREATE USER testuser1 | ||
|
||
upgrade 1 | ||
|
||
user root nodeidx=1 | ||
|
||
statement ok | ||
REVOKE SELECT ON crdb_internal.tables FROM public | ||
|
||
statement ok | ||
GRANT SYSTEM MODIFYCLUSTERSETTING TO testuser1 | ||
|
||
user root nodeidx=2 | ||
|
||
statement ok | ||
GRANT SYSTEM CANCELQUERY TO testuser1 | ||
|
||
query TTTT | ||
SELECT username, path, privileges, grant_options FROM system.privileges | ||
---- | ||
public /vtable/crdb_internal/tables {} {} | ||
testuser1 /global/ {CANCELQUERY,MODIFYCLUSTERSETTING} {} |
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
14 changes: 14 additions & 0 deletions
14
pkg/sql/logictest/tests/cockroach-go-testserver-upgrade-to-master/generated_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.