Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add S3 partition directory verification in integration test #890

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hackintoshrao
Copy link

Enhances append_partition_data_file_test.rs to verify the correct partition
layout in MinIO:

  • Add URL parsing to extract bucket and prefix from table location
  • Implement S3 ListObjectsV2 check for partition directory
  • Add debug logging for table location and data file paths
  • Verify objects exist in the expected partition directory (id=100/)

This helps diagnose the partition layout issue by confirming whether files are being written to the correct partitioned directory structure.

- Updates test fixture to use localhost instead of container IPs
- Adds S3 client configuration for direct MinIO access
- Comments out unused container IP resolution
Changes:
- Switch MinIO image to 'latest' tag for better stability
- Add port 9000 mapping for MinIO (9000:9000)
- Add 'mc' as dependency for REST service to fix the race condition
Enhances append_partition_data_file_test.rs to verify correct partition
layout in MinIO:

- Add URL parsing to extract bucket and prefix from table location
- Implement S3 ListObjectsV2 check for partition directory
- Add debug logging for table location and data file paths
- Verify objects exist in expected partition directory (id=100/)

This helps diagnose the partition layout issue by confirming whether
files are being written to the correct partitioned directory structure.
@liurenjie1024
Copy link
Contributor

Thanks @hackintoshrao for this pr. I'll convert it to draft first as it's only used for showing the expected path, but there is no guarantee in iceberg spec that it should generate such a directory.

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.

2 participants