Skip to content

Try to fix flaky test 00909_kill_not_initialized_query - #102994

Merged
Avogar merged 1 commit into
masterfrom
fix-test-00909
May 12, 2026
Merged

Avogar merged 1 commit into
masterfrom
fix-test-00909

Conversation

@Avogar

@Avogar Avogar commented Apr 17, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

Try to fix flaky test 00909_kill_not_initialized_query. Closes #102995

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.577

$CLICKHOUSE_CLIENT -q "INSERT INTO cannot_kill_query SELECT * FROM numbers(10000000)" &> /dev/null

# This SELECT query will run for a long time. It's used as bloker for ALTER query. It will be killed with SYNC kill.
query_for_pending="SELECT count() FROM cannot_kill_query WHERE NOT ignore(sleep(1)) SETTINGS max_threads = 1, max_block_size = 1"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query actualy ran for 2 seconds only, because of all our optimizations.

@clickhouse-gh

clickhouse-gh Bot commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [df42489]

Summary: ❌

job_name test_name status info comment
Stress test (amd_tsan) failure
Logical error: Can't extract iceberg table state from storage snapshot for table location A (STID: 2606-4a47) FAIL cidb, issue

AI Review

Summary

This PR updates tests/queries/0_stateless/00909_kill_not_initialized_query.sh to make the blocker query deterministic for the flaky scenario by replacing SELECT count() with SELECT x ... FORMAT Null. The change is focused, low risk, and aligns with the stated CI-stability goal.

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 the pr-ci label Apr 17, 2026
@Avogar
Avogar added this pull request to the merge queue May 12, 2026
Merged via the queue into master with commit 78bc83b May 12, 2026
159 of 161 checks passed
@Avogar
Avogar deleted the fix-test-00909 branch May 12, 2026 17:52
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: 00909_kill_not_initialized_query

2 participants