Skip to content

Backport #113553 to 26.7: Fix data race when tracing profile events - #115500

Merged
clickhouse-gh[bot] merged 1 commit into
26.7from
backport/26.7/113553
Aug 19, 2026
Merged

clickhouse-gh[bot] merged 1 commit into
26.7from
backport/26.7/113553

Conversation

@robot-clickhouse-ci-2

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #113553

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

Version info

  • Merged into: 26.7.5.4

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Aug 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [b1fe203]

Summary: ✅

@clickhouse-gh
clickhouse-gh Bot merged commit 60f489d into 26.7 Aug 19, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/113553 branch August 19, 2026 22:28
alexey-milovidov added a commit that referenced this pull request Aug 28, 2026
`reapplied_by` walked one level out from the direct remover, so it found the
revert that first put a change back and stopped there. With
`#109946` ← `#114911` ← `#114912` ← `#115500` ← `#116000` — out, back, out,
back, all inside one cycle — it reported only `#114912`, which the recorded
bullet already carried from the first restoration. The re-apply check was
therefore satisfied by the stale line and `#116000` was lost for good: a
revert of a revert has no bullet of its own, so the link on the entry is its
only trace in the release.

`revert_chain` now walks the whole chain above the entry, and the uncancelled
reverts of that chain are the ones that ship, so they are the ones that belong
on the bullet. `removed_by` is the complement — the cancelled ones — which also
makes the prompt name both removals of a repeated cycle instead of the first.
The three-pull-request case is unchanged: one remover, one re-applier.

The prompt asks for the links of every re-applier, noting that some may
already be on the recorded line from an earlier restoration.

`test_a_longer_chain_records_every_reapply` walks the five-pull-request
timeline and asserts `removed_by == ['114911', '115500']`,
`reapplied_by == ['114912', '116000']`, that replaying the recorded line is
rejected for missing `#116000`, and that appending it passes. It fails with
the one-level walk.
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-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants