Skip to content

possibly fix issue, vibe coded for now - #2294

Open
arthurpassos wants to merge 1 commit into
antalya-26.6from
fix/antalya-26.6/export-skip-policy-commit-marker
Open

possibly fix issue, vibe coded for now#2294
arthurpassos wants to merge 1 commit into
antalya-26.6from
fix/antalya-26.6/export-skip-policy-commit-marker

Conversation

@arthurpassos

Copy link
Copy Markdown
Collaborator

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 to CHANGELOG.md):

...

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

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

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-31T17:45:11.234091Z c6c8e6e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Workflow [PR], commit [c6c8e6e]

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c6c8e6e168

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +54 to +55
if (auto committed_paths = tryReadCommittedPaths())
{

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Verify committed objects before accepting the marker

When a commit marker survives but one of its referenced data objects has been deleted or expired, this branch reports every recorded path and turns the resulting FILE_ALREADY_EXISTS into a successful skip export without checking that those objects still exist. For the common single-file export, the previous path-level existence check would instead rewrite a missing object; this change can now mark the export COMPLETED and publish a path that returns no data. Validate every committed path before accepting the marker, and reconstruct or fail if any are missing.

Useful? React with 👍 / 👎.

/// No commit file: either a fresh export, or an attempt that died before finalizing every
/// file. `error` still reports the leftovers as a conflict, but `skip` has to rewrite them --
/// the files that attempt never reached carry rows no later attempt produces.
overwrite_data_files = file_already_exists_policy != FileAlreadyExistsPolicy::error;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve existing objects under the skip policy

When no commit marker exists but a generated data path already exists—for example, an independently uploaded object, a removed marker, or an older incomplete export—skip now sets overwrite_data_files and silently rewrites that object. The documented policy is to skip an existing file, and absence of the marker does not establish ownership of the existing object, so this fallback can destructively replace unrelated data; fail closed on such a conflict unless ownership can be proven.

AGENTS.md reference: AGENTS.md:L153-L153

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant