Skip to content

Don't use failpoint when checking if enabled - #104237

Merged
PedroTadim merged 2 commits into
masterfrom
fix-failpoints3
May 6, 2026
Merged

PedroTadim merged 2 commits into
masterfrom
fix-failpoints3

Conversation

@PedroTadim

@PedroTadim PedroTadim commented May 6, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

When calling system.failpoints table, it would use a failpoint, thus possibly disabling it.

Closes #103403

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.354

@PedroTadim
PedroTadim requested a review from hanfei1991 May 6, 2026 15:47
@clickhouse-gh

clickhouse-gh Bot commented May 6, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [74cbce7]

Summary: ✅


AI Review

Summary

This PR fixes system.fail_points status reporting by replacing a state-mutating fiu_fail probe with non-mutating fiu_status, and adds a regression test that verifies once and pauseable_once failpoints are not consumed by repeated reads from system.fail_points. I did not find correctness, safety, performance, or compatibility issues in the submitted changes.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-bugfix Pull request with bugfix, not backported by default submodule changed At least one submodule changed in this PR. labels May 6, 2026
@hanfei1991 hanfei1991 self-assigned this May 6, 2026
@PedroTadim
PedroTadim enabled auto-merge May 6, 2026 16:14
@clickhouse-gh

clickhouse-gh Bot commented May 6, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.10% 84.10% +0.00%
Functions 91.10% 91.10% +0.00%
Branches 76.60% 76.60% +0.00%

Changed lines: 100.00% (10/10) · Uncovered code

Full report · Diff report

@PedroTadim
PedroTadim added this pull request to the merge queue May 6, 2026
Merged via the queue into master with commit e42082b May 6, 2026
165 checks passed
@PedroTadim
PedroTadim deleted the fix-failpoints3 branch May 6, 2026 20:06
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getFailPoints uses fiu_fail which consumes FIU_ONETIME failpoints, breaking once and pauseable_once types on every query

3 participants