Repository navigation
Add test for checkImmutableFieldsEquals in ObjectStorageQueueTableMetadata.cpp - #125286
Merged
alexbakharew merged 4 commits intoOct 16, 2026
Conversation
…Metadata.cpp` Test `05366_s3queue_metadata_mismatch_immutable_fields` for `checkImmutableFieldsEquals` in `src/Storages/ObjectStorageQueue/ObjectStorageQueueTableMetadata.cpp`; written by the coverage agent, verified against the master coverage baselines, release hash 1dcb31b3d539.
Contributor
|
Workflow [PR], commit [20a1146] Summary: ✅ LLVM Coverage ReportMeasured on commit 20a1146.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +305 lines in 70 files (-189 lines lost coverage) · Details |
…review Repair round of the coverage agent for PR ClickHouse#125286; verified again against the master coverage baselines, release hash 2e57c6dc8fd3.
…review Repair round of the coverage agent for PR ClickHouse#125286; verified again against the master coverage baselines, release hash a87996affe64.
checkImmutableFieldsEquals in ObjectStorageQueueTableMetadata.cppcheckImmutableFieldsEquals in ObjectStorageQueueTableMetadata.cpp
Rerun CI after the fix of the LLVM Coverage baseline lookup (ClickHouse PR 125987): the previous runs failed only in jobs or tests that are not from this test. Manual retrigger by the owner, not a CI attempt of the agent. Same content as 275e2a1, pushed by the coverage agent so that CI runs the red jobs again against the current master.
checkImmutableFieldsEquals in ObjectStorageQueueTableMetadata.cppcheckImmutableFieldsEquals in ObjectStorageQueueTableMetadata.cpp
clickgapai
marked this pull request as ready for review
October 15, 2026 14:46
NIKTONIKTO717
added a commit
that referenced
this pull request
Nov 23, 2026
…rypick/26.10/129383 Conflicts: - `registerQueueStorage.cpp`: keep only the `<Poco/URI.h>` include that the PR adds; 26.10 does not include `<Databases/IDatabase.h>`. - `StorageFactory.h`: add the new `getExportAccess` overload without `[[nodiscard]]`, like the other declarations in 26.10. - `05441_s3queue_move_destination_access.sh`: keep the `RESTORE TEMPORARY TABLE` case of 26.10 and add the `RESTORE` case of the PR. - `05366_s3queue_metadata_mismatch_immutable_fields`: 26.10 does not have this test, which was added in #125286. Add it with the cases of the PR. Related: #129383 Co-Authored-By: Claude Opus 5.5 <[email protected]>
NIKTONIKTO717
added a commit
that referenced
this pull request
Nov 23, 2026
…ypick/26.9/129383 Conflicts: - `registerQueueStorage.cpp`: keep only the `<Poco/URI.h>` include that the PR adds; 26.9 does not include `<Databases/IDatabase.h>`. 26.9 does not have `isReplayedTableDefinition` and `isSecondaryDDLReplay`, so `strict_metadata_check` uses the same conditions directly, as `registerStorageMergeTree.cpp` does in 26.9. - `StorageFactory.h`: add the new `getExportAccess` overload without `[[nodiscard]]`, like the other declarations in 26.9. - `StorageObjectStorageConfiguration.h`: add only `initialized_from_named_collection`; `is_replayed_definition` is not in 26.9. - `InterpreterAlterQuery.cpp` and `InterpreterAlterQuery.h`: add the `engine` argument to the 26.9 signature of `getRequiredAccessForCommand`. 26.9 does not have `run_as_submitting_user` for `Replicated` databases, so that part of the PR is not backported, and the comment of the `Replicated` case in `05441_s3queue_move_destination_access.sh` says that the initiator checks the grants. - `05441_s3queue_move_destination_access.sh`: keep the `RESTORE TEMPORARY TABLE` case of 26.9 and add the `RESTORE` case of the PR. - `05366_s3queue_metadata_mismatch_immutable_fields`: 26.9 does not have this test, which was added in #125286. Add it with the cases of the PR. Related: #129383 Co-Authored-By: Claude Opus 5.5 <[email protected]>
NIKTONIKTO717
added a commit
that referenced
this pull request
Nov 23, 2026
…ypick/26.8/129383 Conflicts: - `registerQueueStorage.cpp`: keep only the `<Poco/URI.h>` include that the PR adds. 26.8 does not have the `exclusive` mode, so the PR line that clears the path of an `exclusive` queue is not backported. 26.8 does not have `isReplayedTableDefinition` and `isSecondaryDDLReplay`, so `strict_metadata_check` uses the same conditions directly. - `StorageFactory.h`: add the new `getExportAccess` overload without `[[nodiscard]]`, like the other declarations in 26.8. - `StorageObjectStorageConfiguration.h`: add only `initialized_from_named_collection`; `is_replayed_definition` is not in 26.8. - `InterpreterAlterQuery.cpp` and `InterpreterAlterQuery.h`: add the `engine` argument to the 26.8 signature of `getRequiredAccessForCommand`. 26.8 does not have `run_as_submitting_user` for `Replicated` databases, so that part of the PR is not backported, and the comment of the `Replicated` case in `05441_s3queue_move_destination_access.sh` says that the initiator checks the grants. 26.8 does not look up the table by name again after the access check, and the `ALTER` runs on the table that was checked, so the second check of the PR is not needed. - `05441_s3queue_move_destination_access.sh`: keep the `RESTORE TEMPORARY TABLE` case of 26.8 and add the `RESTORE` case of the PR. - `05366_s3queue_metadata_mismatch_immutable_fields`: 26.8 does not have this test, which was added in #125286. Add it with the cases of the PR, without the case of the `exclusive` mode. Related: #129383 Co-Authored-By: Claude Opus 5.5 <[email protected]>
NIKTONIKTO717
added a commit
that referenced
this pull request
Nov 23, 2026
…ypick/26.3/129383 Conflicts: - `registerQueueStorage.cpp`: keep only the `<Poco/URI.h>` include that the PR adds. 26.3 does not have the `s3_uri_style` setting, so `getQueueSource` parses the URL without user info with the default style, as 26.3 parses the URL of the table. `StorageAzureConfiguration` in 26.3 has `getNamespace` instead of `getContainer`. 26.3 does not have the `exclusive` mode, so the PR line that clears the path of an `exclusive` queue is not backported. 26.3 does not have `isReplayedTableDefinition` and `isSecondaryDDLReplay`, so `strict_metadata_check` uses the same conditions directly. - `Azure/Configuration.h`: 26.3 does not have `getSasKey`, so the new `getConnectionURLWithoutQuery` reads `connection_params.endpoint.sas_auth`. - `StorageObjectStorageConfiguration.cpp` and `StorageObjectStorageConfiguration.h`: add only `initialized_from_named_collection`. - `StorageFactory.h`: add the new `getExportAccess` overload without `[[nodiscard]]`, like the other declarations in 26.3. - `StorageObjectStorageQueue.cpp`: `alter` in 26.3 takes the mode from `getTableMetadata`, so the settings of the queue on this server come from it too. - `InterpreterAlterQuery.cpp` and `InterpreterAlterQuery.h`: `getRequiredAccess` in 26.3 does not take the table, so it takes the name of the engine, and `executeToTable` passes the engine of the table that is not a stand-in of a table that is not loaded yet. 26.3 does not have `run_as_submitting_user` for `Replicated` databases, so that part of the PR is not backported, and the comment of the `Replicated` case in `05441_s3queue_move_destination_access.sh` says that the initiator checks the grants. 26.3 does not look up the table by name again after the access check, and the `ALTER` runs on the table that was checked, so the second check of the PR is not needed. - `05441_s3queue_move_destination_access.sh`: keep the `RESTORE TEMPORARY TABLE` case of 26.3 and add the `RESTORE` case of the PR. - `05366_s3queue_metadata_mismatch_immutable_fields`: 26.3 does not have this test, which was added in #125286. Add it with the cases of the PR, without the cases of the `exclusive` mode and of `s3_uri_style`. - `test_storage_s3_queue/test_0.py`: the old version of the upgrade test is 25.10, because 26.7 is newer than 26.3. Related: #129383 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test-only PR from the coverage agent. Review: is the gap real, is the test right.
Adds
tests/queries/0_stateless/05366_s3queue_metadata_mismatch_immutable_fields, which executes code that no stateless test on master executes:checkImmutableFieldsEqualsinsrc/Storages/ObjectStorageQueue/ObjectStorageQueueTableMetadata.cpp, lines 250-367 (source at dbc8c4fb8d2a). The function had 53 executable lines with 0 hits in the 4 LLVM coverage baselines of master (dbc8c4f, 1bc3e78, 839f7a8, 56ffbc1).Why this test is needed: This test is needed because checkImmutableFieldsEquals guards SQL-reachable ObjectStorageQueue metadata checks and must reject immutable setting drift instead of silently accepting it.
What the test asserts: The test asserts that mismatched immutable ObjectStorageQueue metadata raises a visible METADATA_MISMATCH error for the conflicting setting.
Measured on the CI coverage build of
dbc8c4fb8d2a. A line counts as uncovered only when it has 0 hits in all 4 baselines.tests/queries/0_statelessThe test was written by an AI agent (a Nerve worker on Claude) from a task of a deterministic census, verified by the gates above, and released under content hash
1dcb31b3d539. It was renumbered from05353_s3queue_metadata_mismatch_immutable_fieldsat publication. The PR is a draft until a person has reviewed it. Replies to review comments come from the agent's owner, not from the agent.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/125286]
Version info
26.11.1.59-master(included in26.11and later)