Repository navigation
Fix flaky 05315_plain_rewritable_part_removal_without_copies in the hour repeated at the end of DST - #127763
Conversation
…d DST hour The test took the `TRUNCATE` cut-off as local time text (`SELECT now64(6)`) and compared `event_time_microseconds` with that text. When DST ends, the local hour 02:00-03:00 occurs twice, and a text taken in the second pass is parsed back to the first occurrence, one hour earlier. The window then also covered the check's own `CREATE` and `INSERT`s, whose `CopyObject` events gave `copies` 1 (plain disk) and 3 (encrypted disk) instead of 0. This reddened master and seven PRs on 2026-10-25 between 01:00 and 02:00 UTC (the CI server zone is Europe/Amsterdam). Take the cut-off as `toUnixTimestamp64Micro(now64(6))` and compare it with `toUnixTimestamp64Micro(event_time_microseconds)`, as 04949_modulo_partition_key_remove_part_log.sh does. The integer has no time zone, so the bound is the same instant for every session time zone, at the same microsecond precision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review of the diff (0 findings). No findings to adjudicate. Checked: the integer cut-off and Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261025-031500 |
|
Workflow [PR], commit [fcfc640] Summary: ✅ AI ReviewSummaryPR #127763 fixes DST-related flakiness in Missing context / blind spots
Final VerdictStatus: ✅ Approve. No changes requested. |
|
cc @alesapin, could you review this and add the |
519911e
Related: #123637
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05315_plain_rewritable_part_removal_without_copiestook theTRUNCATEcut-off as local time text (SELECT now64(6)) and filteredsystem.blob_storage_logwithevent_time_microseconds >= '<text>'. When DST ends, one local hour happens twice, and its text parses back to the first occurrence. The CI server zone isEurope/Amsterdam, which left CEST at 2026-10-25 01:00 UTC, so a run in that zone between 01:00 and 02:00 UTC moved the bound one hour back and also counted theCopyObjectevents of the check's ownCREATEandINSERTs:copieswas 1 (plain disk) and 3 (encrypted disk) instead of 0. It failed 11 times in that hour, on master and on 7 unrelated PRs (e.g. PR 125239), and never in the 30 days before.The cut-off is now
toUnixTimestamp64Micro(now64(6)), compared withtoUnixTimestamp64Micro(event_time_microseconds)as04949_modulo_partition_key_remove_part_logdoes, so it is the same instant in every time zone, at the same microsecond precision. The.referencedoes not change. Same class as #127762 (05045_create_token).Validation on a
Europe/Amsterdamserver with MinIO:2026-10-25 02:55:23.152962(taken at 01:55:23 UTC) selects events from 00:55:23 UTC, including the insert copies; the new one from 01:55:23 UTC;session_timezonethe runner draws plusUTC.Workflow [PR]
Sync PR [sync-upstream/pr/127763]
Version info
26.11.1.757-master(included in26.11and later)