Skip to content

Backport #119238 to 26.3: Don't use backoffs on concurrent inserts conflicts - #120586

Merged
PedroTadim merged 3 commits into
26.3from
backport/26.3/119238
Nov 3, 2026
Merged

PedroTadim merged 3 commits into
26.3from
backport/26.3/119238

Conversation

@robot-clickhouse-ci-2

Copy link
Copy Markdown
Contributor

Original pull-request #119238
Cherry-pick pull-request #119416

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Sep 17, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [0a9f7e4]

Summary: ✅

PedroTadim and others added 2 commits November 3, 2026 11:07
The auto cherry-pick of #119238 landed a new `isRetriableHTTPError` in
`src/IO/HTTPCommon.cpp`, but on master that symbol is the renamed/relocated
retry gate (declared in `HTTPCommon.h`, called from `ReadWriteBufferFromHTTP.cpp`
and the AI request executor). 26.3 has none of that wiring, so the backported
function was dead code and `409 Conflict` was still retried `http_max_tries`
times, which is exactly what `05055_http_conflict_is_not_retried` caught
(`requests: 10` instead of `1`).

On 26.3 the real retry decision is the file-local `isRetriableError` in
`src/IO/ReadWriteBufferFromHTTP.cpp`. Add `HTTP_CONFLICT` to its
`non_retriable_errors` list and drop the dead `isRetriableHTTPError` the
cherry-pick added, so the backport matches the intent of #119238.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=120586&sha=latest&name_0=BackportPR
PR: #120586

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@PedroTadim
PedroTadim merged commit 60f7e0f into 26.3 Nov 3, 2026
36 checks passed
@PedroTadim
PedroTadim deleted the backport/26.3/119238 branch November 3, 2026 16:35
leshikus pushed a commit that referenced this pull request Nov 13, 2026
The auto cherry-pick of #119238 landed a new `isRetriableHTTPError` in
`src/IO/HTTPCommon.cpp`, but on master that symbol is the renamed/relocated
retry gate (declared in `HTTPCommon.h`, called from `ReadWriteBufferFromHTTP.cpp`
and the AI request executor). 26.3 has none of that wiring, so the backported
function was dead code and `409 Conflict` was still retried `http_max_tries`
times, which is exactly what `05055_http_conflict_is_not_retried` caught
(`requests: 10` instead of `1`).

On 26.3 the real retry decision is the file-local `isRetriableError` in
`src/IO/ReadWriteBufferFromHTTP.cpp`. Add `HTTP_CONFLICT` to its
`non_retriable_errors` list and drop the dead `isRetriableHTTPError` the
cherry-pick added, so the backport matches the intent of #119238.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=120586&sha=latest&name_0=BackportPR
PR: #120586

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants