Skip to content

fix(destination-s3-data-lake): use unique table name in check operation - #67150

Merged
Davin Chia (davinchia) merged 6 commits into
masterfrom
fix/s3-data-lake-check-unique-table-name
Oct 7, 2025
Merged

Davin Chia (davinchia) merged 6 commits into
masterfrom
fix/s3-data-lake-check-unique-table-name

Conversation

@davinchia

@davinchia Davin Chia (davinchia) commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor

What

Use UUID-based table names for check operation test tables to prevent conflicts with:

Stale metadata from previous check runs
Concurrent check operations
User tables named airbyte_test_table
This fixes the integration test failure caused by corrupted Glue catalog metadata pointing to non-existent S3 files.

🤖 Generated with Claude Code

How

As description. This is what is currently breaking the S3 Data Lake tests.

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Important

Auto-merge enabled.

This PR is set to merge automatically when all requirements are met.

Use UUID-based table names for check operation test tables to prevent
conflicts with:
- Stale metadata from previous check runs
- Concurrent check operations
- User tables named airbyte_test_table

This fixes the integration test failure caused by corrupted Glue catalog
metadata pointing to non-existent S3 files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

👋 Greetings, Airbyte Team Member!

Here are some helpful tips and reminders for your convenience.

Helpful Resources

PR Slash Commands

Airbyte Maintainers (that's you!) can execute the following slash commands on your PR:

  • /format-fix - Fixes most formatting issues.
  • /update-connector-cdk-version connector=<CONNECTOR_NAME> - Updates the specified connector to the latest CDK version.
    Example: /update-connector-cdk-version connector=destination-bigquery
  • /bump-version - Bumps connector versions.
    • You can specify a custom changelog by passing changelog. Example: /bump-version changelog="My cool update"
    • Leaving the changelog arg blank will auto-populate the changelog from the PR title.
  • /run-cat-tests - Runs legacy CAT tests (Connector Acceptance Tests)
  • /build-connector-images - Builds and publishes a pre-release docker image for the modified connector(s).
  • /poe connector source-example lock - Run the Poe lock task on the source-example connector, committing the results back to the branch.
  • /poe source example lock - Alias for /poe connector source-example lock.
  • /poe source example use-cdk-branch my/branch - Pin the source-example CDK reference to the branch name specified.
  • /poe source example use-cdk-latest - Update the source-example CDK dependency to the latest available version.

📝 Edit this welcome message.

@github-actions

github-actions Bot commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor

destination-s3-data-lake Connector Test Results

222 tests   139 ✅  5m 0s ⏱️
 15 suites   83 💤
 15 files      0 ❌

Results for commit 510fd7e.

♻️ This comment has been updated with latest results.

…tables

Wrap test table creation in try-finally to ensure cleanup always occurs,
even if validation logic is added in the future or if the operation fails.

This prevents accumulation of orphaned test tables in Glue catalog and S3.
@davinchia

Davin Chia (davinchia) commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor Author

/format-fix

Format-fix job started... Check job output.

✅ Changes applied successfully. (d98834a)

Add comprehensive KDoc documentation to S3DataLakeChecker class and
catalogValidation method explaining:
- What the checker validates
- UUID-based naming strategy and conflict prevention
- Try-finally cleanup guarantee
- Expected exceptions
@davinchia

Davin Chia (davinchia) commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor Author

/format-fix

Format-fix job started... Check job output.

✅ Changes applied successfully. (60d90c2)

@edgao Edward Gao (edgao) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

Update version from 0.3.36 to 0.3.37 and add changelog entry for PR #67150.

This release fixes the check operation to use UUID-based unique table names,
preventing conflicts with stale metadata from previous runs and concurrent
check operations.
@davinchia
Davin Chia (davinchia) enabled auto-merge (squash) October 7, 2025 18:11
@davinchia
Davin Chia (davinchia) merged commit 278ddd4 into master Oct 7, 2025
2 of 3 checks passed
@davinchia
Davin Chia (davinchia) deleted the fix/s3-data-lake-check-unique-table-name branch October 7, 2025 18:17
Matteo Palarchio (matteogp) pushed a commit that referenced this pull request Oct 10, 2025
…on (#67150)

Use UUID-based table names for check operation test tables to prevent conflicts with:

Stale metadata from previous check runs
Concurrent check operations
User tables named airbyte_test_table
This fixes the integration test failure caused by corrupted Glue catalog metadata pointing to non-existent S3 files.

🤖 Generated with Claude Code


Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants