Repository navigation
Replicated access storage in stateless tests - #67954
Conversation
|
Dear @pufit, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
1 similar comment
|
Dear @pufit, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
|
Dear @pufit, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
2 similar comments
|
Dear @pufit, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
|
Dear @pufit, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
|
Workflow [PR], commit [149674b] Summary: ✅ AI ReviewSummaryThis PR enables Final Verdict
|
|
@pufit, good change, let's merge it. |
|
It will require some effort to make it work for all tests. I'll do it as soon as I clear all my other tasks |
|
@pufit, how is it? |
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Source grants with URI/regexp filters are not compatible with replicated access storage, as the filter patterns may not serialize/deserialize correctly through ZooKeeper. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Dear @alexey-milovidov, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
…cess-storage-in-tests
…ccess storage These stateless tests assert access-entity output that differs under replicated access storage, which this PR enables for the `DatabaseReplicated` test configuration: - `01292_create_user`, `01293_create_role`, `01294_create_settings_profile`, `01295_create_row_policy`, `01297_create_quota` select the `storage` column from `system.users`/`system.roles`/etc., which reports `replicated` instead of `local_directory`. - `01939_user_with_default_database`, `03313_sources_read_write_grants`, `03594_system_grants_parameters` depend on access-entity behavior that differs under the replicated access storage cluster. Exclude them from the replicated-database configuration, consistent with `03595_sources_regexp_filter_grants` and `03636_normalize_url_in_source_grants`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Picked up this PR (it was ~17k commits / ~2.5 months behind Merged Fixed the CI failures in the
I tagged all eight with One thing worth a look: in The only other failure was CI report: #67954 |
…ess storage Tests `01292_create_user`, `01293_create_role`, `01294_create_settings_profile`, `01295_create_row_policy` and `01297_create_quota` were tagged `no-replicated-database` because, under `ReplicatedAccessStorage`, the `storage` column of `system.users`/ `system.roles`/`system.settings_profiles`/`system.row_policies`/`system.quotas` reports `replicated` instead of `local_directory`. That was the only difference: verified against a server configured with `ReplicatedAccessStorage`, the rest of each test (`SHOW CREATE`, `ALTER`, roles, settings, policies, quotas, `system.*` serialization) matches the reference exactly. Instead of excluding these from the `DatabaseReplicated` run, normalize only the `storage` column with `if(storage = 'replicated', 'local_directory', storage)` so the core access-entity coverage keeps running against replicated access storage. The expression is a no-op for the default `local_directory` storage, so the non-replicated run is unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Picked this up to address the two AI-review threads. Restored coverage for the five The The branch is ~3 days / green behind |
…cess-storage-in-tests
|
Re-merged The previous red was only the
The AI review verdict stays |
The branch shares two merge-bases with `master` (the original 2024-08-07 base and a recent one), so git's recursive strategy generated spurious whole-tree conflicts while merging the virtual ancestor. This branch only changes 12 test/config files on top of `master` (0 changes under `src/`), so the merge was resolved deterministically: reset the merged tree to `master`, then re-apply exactly the PR's 12-file diff. The result is `master` plus the PR's +24/-10 test changes and nothing else.
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 164 line(s), 38 function(s) across 53 file(s) · Details Top files
|
…cess-storage-in-tests
…cess-storage-in-tests
…cess-storage-in-tests
With `<replicated>` listed before `<users_xml>`, `MultipleAccessStorage` insertion, lookup and authentication precedence would flip against config-defined access entities: `CREATE USER default` would insert into the replicated storage and shadow the entity from `users.xml`. Keep `<users_xml>` first, as in the default server config; SQL-created entities still land in `<replicated>` because `users_xml` is read-only.
…-replicated-database` With the replicated access storage installed under `USE_DATABASE_REPLICATED=1`, the access-entity serialization round trip widens `GRANT READ ON FILE` to both `READ` and `WRITE` (issue #111402), so the test would stay green without actually verifying the source-grant semantics. Tag it out of the replicated run together with the other source-grant tests until the serialization fix lands. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Hi @pufit @rahulmalik87 @PedroTadim — a couple of suggestions to make this PR easier for reviewers and the changelog reader. Description (currently
Ignore this if the current title/body is intentional. |
…access-storage-in-tests Replicated access storage in stateless tests
Changelog category (leave one):