Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport #58611 to 23.12: Improve isolation of query cache entries un…
…der re-created users or role switches
- Loading branch information
1 parent
a33ad39
commit 378acd9
Showing
11 changed files
with
221 additions
and
56 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
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
28 changes: 28 additions & 0 deletions
28
tests/queries/0_stateless/02494_query_cache_user_isolation.reference
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,28 @@ | ||
Attack 1 | ||
0 | ||
system.query_cache with old user 1 | ||
0 | ||
0 1 | ||
1 0 | ||
system.query_cache with new user 0 | ||
0 | ||
0 1 | ||
1 0 | ||
0 1 | ||
Attack 2 | ||
-- policy_1 test | ||
1 1 | ||
3 1 | ||
6 1 | ||
-- policy_2 test | ||
2 2 | ||
5 2 | ||
8 2 | ||
-- policy_1 with query cache test | ||
1 1 | ||
3 1 | ||
6 1 | ||
-- policy_2 with query cache test | ||
2 2 | ||
5 2 | ||
8 2 |
Oops, something went wrong.