Skip to content

Antalya 26.8: auto-grp-pr-2308: combined port of 2 PRs - #2658

Merged
zvonand merged 4 commits into
antalya-26.8from
feature/antalya-26.8/auto-grp-pr-2308
Oct 24, 2026
Merged

zvonand merged 4 commits into
antalya-26.8from
feature/antalya-26.8/auto-grp-pr-2308

Conversation

@zvonand

@zvonand zvonand commented Oct 23, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • New Feature

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

Add support for Iceberg v3 row lineage metadata: write the first_row_id and next_seq_num fields when writing Iceberg tables, and expose first_row_id and last_seq_num from manifest files as virtual columns in system.iceberg_files.
Add support for Iceberg v3 row lineage metadata: write the first_row_id and next_seq_num fields when writing Iceberg tables, and expose first_row_id and last_seq_num from manifest files as virtual columns in system.iceberg_files (#2308 by @subkanthi, #2456 by @subkanthi).

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

Combined port of 2 PR(s) (group auto-grp-pr-2308). Cherry-picked from #2308, #2456.

…next commit)

---
Original cherry-pick message follows:

Merge pull request #2308 from Altinity/backports/antalya-26.6/115603

Antalya 26.6 - Backport of ClickHouse#115603 - read row_lineage(iceberg v3) fields as virtual columns
# Conflicts:
#	src/Core/ProtocolDefines.h
#	src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergDataObjectInfo.cpp
#	src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergDataObjectInfo.h
#	src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergIterator.cpp
#	src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFilesPruning.cpp
#	src/Storages/ObjectStorage/DataLakes/Iceberg/ManifestFilesPruning.h
#	src/Storages/ObjectStorage/DataLakes/Iceberg/StatelessMetadataFileGetter.cpp
#	src/Storages/ObjectStorage/StorageObjectStorageSource.cpp
Keep antalya-26.8 cluster protocol versions (absolute path moved to the
Antalya protocol, version 9 is identity partition columns) and add
CDC_READING = 10 on top.

Pass first_row_id in the antalya-26.8 IcebergIterator::createManifestIterator
(the old SingleThreadIcebergKeysIterator::next code was replaced).

ManifestFilesPruner on antalya-26.8 caches column types in
min_max_column_types instead of re-reading the schema in canBePruned;
row-lineage columns take their type from row_lineage_columns there.

Source-PR: #2308 (#2308)
…next commit)

---
Original cherry-pick message follows:

Merge pull request #2456 from Altinity/backport-116171-iceberg-v3-cdc-writes

Antalya 26.6: Backport of ClickHouse#116171 to write iceberg v3 next_seq_num and first_row_id
# Conflicts:
#	src/Storages/ObjectStorage/DataLakes/Iceberg/Compaction.cpp
#	src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp
#	src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergWrites.cpp
#	src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergWrites.h
#	src/Storages/ObjectStorage/DataLakes/Iceberg/Mutations.cpp
#	tests/integration/test_storage_iceberg_with_spark/test_optimize.py
`generateManifestList` on antalya-26.8 gained a trailing `previous_manifest_actions`
parameter (used by `AlterDropPartitionExecutor`), so `entry_row_counts` is appended
after it and the PR's call sites pass `/* previous_manifest_actions */ {}`.

`ManifestListEntryCounts` and the compaction per-manifest counts are already on
antalya-26.8 in a more evolved form (with lineage), so the base side is kept there.

The new-entries loop is moved after the parent-entries copy as in the PR, keeping
antalya-26.8's loop body and applying only the PR's `entry_row_counts` and
`first_row_id` changes.

In `Mutations.cpp`, antalya-26.8 iterates `data_file` per partition, so
`delete_filename.total_rows` becomes `data_file.total_rows`.

Adapted: entry_row_counts appended after previous_manifest_actions in generateManifestList
Adapted: Mutations.cpp row counts taken from data_file.total_rows
Source-PR: #2456 (#2456)
@zvonand zvonand added releasy Created/managed by RelEasy antalya-26.8 forwardport This is a frontport of code that existed in previous Antalya versions ai-resolved Port conflict auto-resolved by Claude labels Oct 23, 2026
@zvonand zvonand mentioned this pull request Oct 23, 2026
58 tasks done
@github-actions

Copy link
Copy Markdown

Workflow [PR], commit [6784add]

@mkmkme

mkmkme commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

@blau-ai

@blau-ai

blau-ai commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

CI triage

Verdict: 4 distinct failures, 0 PR-caused. All are infra / timeout / randomized-settings flakiness in areas this PR does not touch (the PR is entirely Iceberg: src/Storages/ObjectStorage/DataLakes/Iceberg/*, StorageSystemIcebergFiles, VirtualColumnUtils, ProtocolDefines.h). None of the failing tests exercise Iceberg code. Safe to re-run.

Check Classification PR-caused?
AST fuzzer (amd_debug, targeted, old_compatibility) Infra — runner died ❌ No
SQLLogic test Infra — 3h wall-clock timeout ❌ No
Stateless (amd_debug, distributed plan, s3 storage, parallel) Flaky — randomized MergeTree settings ❌ No
Regression release / aarch64 swarms Flaky/infra — swarm resilience tests ❌ No

1. AST fuzzer (amd_debug, targeted, old_compatibility) — ERROR → infra

Praktika produced no result ("Job failed to produce Result due to a script error or CI runner issue", no job.log uploaded). The GitHub check-run annotation is decisive:

The self-hosted runner lost communication with the server. Verify the machine is running and has a healthy network connection…

The runner died mid-job. Not a fuzzer crash (a real crash produces a FAIL with a stack). Next step: re-run the job.

2. SQLLogic test — ERROR → timeout

job.log tail:

WARNING: Job timed out: [SQLLogic test], timeout [10800], exit code [-15]
ERROR: Run failed with exit code [-15]

The job was SIGTERM-killed at the 3h budget. Timeline: statements-test ran 21:25→22:48 (~1h22m), complete-test started 22:48 and was still running when the budget expired at 00:24. This is the upstream sqllogictest suite (SQLite comparison) — unrelated to Iceberg; it is simply slow on this runner. Next step: re-run; if it recurs, the suite's time budget / parallelism needs raising (not a PR issue).

3. Stateless (amd_debug, distributed plan, s3 storage, parallel) — FAIL → randomized-settings flake

One test: 03572_export_merge_tree_part_limits_and_table_functions. CI's own auto-diagnosis is conclusive:

Step 1: Re-running with the same randomized settings … Failed: 3, Passed: 0  → reproducible
Step 2: Re-running without randomized settings … Failed: 0, Passed: 2
Result: Passes without randomization. Confirmed: the failure is caused by randomized settings.

The diff is a file-count assertion:

---- Count files in big_destination_max_bytes, should be 5 (4 parquet, 1 commit)
-5
+4

The test asserts an exact Parquet file count after a MergeTree→S3 (hive-partitioned Parquet) export; randomized MergeTree part-sizing settings (min_bytes_for_wide_part 0, index_granularity_bytes, compact-part thresholds, …) changed how many parts/files were produced. This is pre-existing fragility of that export test to setting randomization — it is a MergeTree→S3 export test, not Iceberg, and is not in this PR's changed files. Next step: safe to re-run; the fix (hardening 03572 against randomized part sizing) belongs upstream/with the export test, not this PR.

4. Regression release swarms + aarch64 swarms — FAIL → flaky/infra

Identical 3 scenarios failed on both architectures:

/swarms/feature/cluster discovery/check cluster discovery with wrong cluster name
/swarms/feature/node failure/cpu overload
/swarms/feature/node failure/cpu overload all swarm nodes

These are distributed-swarm resilience tests — cluster discovery and CPU-overload fault injection. They have no connection to Iceberg code paths. The CPU-overload tests inject host CPU stress and are notoriously environment/resource-sensitive on shared self-hosted runners. Next step: re-run the swarms regression; these aren't affected by this PR's changes.


Bottom line

CI is red only on infra (runner loss, timeout) and pre-existing test flakiness (randomized MergeTree settings, environment-sensitive swarm tests) — all outside the Iceberg code this PR modifies. I'd re-run all four. The Iceberg-relevant suites that did run are green: Stateless (amd_debug, parallel/sequential), Integration tests (arm_binary, distributed plan), BuzzHouse, Fast test, Stress test, and the regular AST fuzzer (amd_debug, targeted) all passed, and the Iceberg/Parquet/S3-export regression suites selected for this PR were requested — worth confirming those come back green on the re-run.

🤖 Generated with Claude Code

@zvonand
zvonand merged commit 58e3edd into antalya-26.8 Oct 24, 2026
320 of 330 checks passed
@zvonand zvonand added verified Approved for release port-antalya PRs to be ported to all new Antalya releases labels Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-resolved Port conflict auto-resolved by Claude antalya antalya-26.8 antalya-26.8.39.20001 forwardport This is a frontport of code that existed in previous Antalya versions port-antalya PRs to be ported to all new Antalya releases releasy Created/managed by RelEasy verified Approved for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants