Repository navigation
connectionId() is not deterministic - #92174
Merged
alexey-milovidov merged 1 commit intoDec 15, 2025
Merged
Conversation
Contributor
|
Workflow [PR], commit [c1a20e0] Summary: ❌
|
azat
force-pushed
the
connectionId-determinstic
branch
from
December 15, 2025 16:06
93ef3f9 to
c1a20e0
Compare
alexey-milovidov
approved these changes
Dec 15, 2025
Contributor
|
Hi @azat @alexey-milovidov — while reviewing this PR I found the following:
Happy to discuss — close anything that's wrong or already addressed. |
Krishnachaitanyakc
added a commit
to Krishnachaitanyakc/ClickHouse
that referenced
this pull request
Apr 2, 2026
`getClientHTTPHeader` reads per-connection HTTP headers, so its result can differ between connections with the same arguments. Without the `isDeterministic()=false` override, the query cache incorrectly caches results of queries using this function, returning stale header values on subsequent requests. This is the same class of bug that was fixed for `connectionId` in PR ClickHouse#92174. Closes ClickHouse#101120
1 task
Contributor
|
Apologies for the duplicate notification — we had a race condition in our notification system where multiple processes posted simultaneously. The duplicate has been removed and we've added a strict 3-layer dedup guard (DB lock + immediate key + GitHub comment check) to ensure this cannot happen again. |
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.
Changelog category (leave one):
Long term -
isDeterministic/isDeterministicInScopeOfQueryshould be purevirtual