Repository navigation
Conversation
|
Workflow [PR], commit [f8218c0] Summary: ✅
AI ReviewSummaryThis PR makes Findings❌ Blockers
Final Verdict
|
|
@scanhex12 the test failures look unrelated to me, but please let me know if there's something I should look into. Otherwise, do you think it's good to be merged? |
6cd3a86 to
edd81ac
Compare
edd81ac to
6b2dfc7
Compare
|
@scanhex12 I just rebased to resolve the conflict in |
|
@scanhex12 Could you maybe take this over and get it merged? I'm also happy to rebase again but it's hard to keep up with so many changes in settings |
|
Dear @scanhex12, 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. |
|
Dear @scanhex12, 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. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units10 translation units recompiled, 29 s compile time in total, 10 of them have a recent master baseline. |
|
@scanhex12 could you take another look at this? The AI reviewer seems happy and the test failures look unrelated to me. |
…check The `Error message in clickhouse-server.log` sub-result of `Upgrade check (amd_release)` fails on unrelated PRs because the post-upgrade server logs <Error> StorageKeeperMap (test_1.`05024_keeper_map_parenthesized_metadata_unparsable` (...)): Failed to activate table because of invalid metadata in ZooKeeper. Please DROP/DETACH table for a table that `05024_keeper_map_parenthesized_metadata` deliberately left with an unreadable `metadata` znode. The job replays the previous release's suite under `stress --upgrade-check`. The test rewrites its shared `metadata` znode through shapes a server must refuse and reverts them near the end of the file; stress worker 1 (`--database=test_1`) runs with `memory_tracker_fault_probability`, so an injected `Code: 241` can stop the file before the `DROP`s at its end run, leaving the tables it created behind with an unreadable znode. The upgrade restart re-attaches the surviving tables and logs the message above per table instead of refusing to start, which is what ClickHouse#115941 made it do on purpose (it replaced the startup abort of ClickHouse#115881), and the runner greps the post-upgrade log for `<Error>`. Measured on the three PRs the signature has hit (ClickHouse#94105, ClickHouse#118419, ClickHouse#94730): the fixture accounts for 1/1, 1/1 and 3/3 of the leaked lines while every other sub-result of the job is OK, so the check yields no signal at all for the carrier. The entry requires the `StorageKeeperMap` logger AND a backquoted table name starting with the fixture prefix AND the message, so the same message on any other KeeperMap table, which is the shape a real metadata-compatibility regression takes, still fails the job. Replaying the job's own scan pipeline over each carrier's `clickhouse-server.upgrade.log` reproduces that job's `upgrade_error_messages.txt` byte for byte, and the entry takes each of the three to zero; over the 156,750 pre-filter log lines the pattern matches exactly the leaked lines and nothing else. Related: ClickHouse#115881
Resolve the conflict with the move of the settings changes history into the setting declarations (ee6b44f): the history records this PR added to `SettingsChangesHistory.cpp` now live as trailing arguments of the `DECLARE` of each setting. - retargeted PR record [email protected] to 26.10 (settings-history check rule) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
@alexey-milovidov thanks for updating the branch. Can we get this merged before the version becomes out-of-date again? |
| { | ||
| String name{setting}; | ||
| /// The `sync_request_timeout` config key controls only synchronous requests made by `clickhouse-client`. | ||
| if (name == "sync_request_timeout") |
There was a problem hiding this comment.
This only blocks the config-file carrier from reaching client_context. A regular CLI setting still reaches both surfaces: processOptions copies every settings option into config() via addToClientOptions (programs/client/Client.cpp:1318-1320), and ConnectionParameters(config(), ...) later reads sync_request_timeout back out of that config (programs/client/Client.cpp:625, src/Client/ConnectionParameters.cpp:398-412). So clickhouse-client --sync_request_timeout=0.5 ... still lowers the client's own Ping/reconnect timeout while also sending the setting to the server.
That reintroduces the session-loss hazard this PR is trying to avoid: a user who only wanted server-side TablesStatusRequest to fail fast can still reconnect away temporary tables or session settings after an error. Please keep the generic --sync_request_timeout carrier server-side only as well, for example by filtering it out when settings options are copied into config(), or by giving the client-local timeout a separate explicit option.
While working on #94726, I noticed that there is no setting for the sync request timeout. I found #34597, and the reasoning for not increasing the timeout given in #34597 (comment) makes sense to me. However, I do think that reducing the timeout to aggressively fail fast in large clusters can be valuable. That's why I'm proposing to add a setting with this PR.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Server-side synchronous request-result protocol calls (such as
PingandTableStatus) can now be tuned withsync_request_timeout, whileclickhouse-clientcontinues to use its client configuration for its own sync requests.Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/94730]