iceberg-python: [bug?] cannot run integration test
Apache Iceberg version
main (development)
Please describe the bug 🐞
On Mac, anyone having issue running make test-integration on the current main branch?
I’m having issues but not sure if its due to my local env
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (11 by maintainers)
@antonioalegria i think thats a different issue
versus the origin issue
Hi folks, I’m going through a career transition, so my apologies for arriving on this discussion a little late.
@antonioalegria @kevinjqliu I don’t think the bugged Manifest caching feature was ever released. Here’s the version of manifest implementation that was released in 0.7.1:
https://github.com/apache/iceberg-python/blob/f92994e85e526502a620506b964665b9afd385fe/pyiceberg/table/snapshots.py#L233-L256
Are we sure we are saying the same exact error? Would you mind sharing the exception trace @antonioalegria ?
@antonioalegria thanks for the context. Does the current
mainbranch resolve this issue? It already incorporated the fixI’ll see if we can do a hotfix release
One realization is that the manifest cache is implemented as a global cache. https://github.com/apache/iceberg-python/blob/de47590c6ac4f507cb2337c20504a62c484339f9/pyiceberg/table/snapshots.py#L234-L238
And kept in memory until eviction.
And since
ManifestFilehas an IO component, I think the file descriptors are kept alive and never cleaned up.Why does this only affect M1 Mac? I have no idea.
Been facing the same issue on my Mac (Python 3.11) since yesterday when I rebased latest main branch to my dev branch. Just realized that tests are not running on main branch itself. I did
make cleanandmake test-integration-rebuildand now I’m seeing more errors than before. Although I did run some of those integration tests through IDE and are running fine.Error message -
OSError: When initiating multiple part upload for key 'default/arrow_table_v1_with_multiple_partitions/metadata/snap-6162354366671903431-0-18a934c0-df15-4f4f-acec-3aedfe585765.avro' in bucket 'warehouse': AWS Error NETWORK_CONNECTION during CreateMultipartUpload operation: curlCode: 43, A libcurl function was given a bad argument