You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "flaming-archer (via GitHub)" <gi...@apache.org> on 2026/06/03 03:55:07 UTC

[PR] fix FilesetS3CatalogIT hangs on macOS [gravitino]

flaming-archer opened a new pull request, #11393:
URL: https://github.com/apache/gravitino/pull/11393

   <!--
   1. Title: [#<issue>] <type>(<scope>): <subject>
      Examples:
        - "[#123] feat(operator): Support xxx"
        - "[#233] fix: Check null before access result in xxx"
        - "[MINOR] refactor: Fix typo in variable name"
        - "[MINOR] docs: Fix typo in README"
        - "[#255] test: Fix flaky test NameOfTheTest"
      Reference: https://www.conventionalcommits.org/en/v1.0.0/
   2. If the PR is unfinished, please mark this PR as draft.
   -->
   
   ### What changes were proposed in this pull request?
   
   1、S3FileSystemProvider.java: 
   Add the missing key mapping GRAVITINO_S3_PATH_STYLE_ACCESS → PATH_STYLE_ACCESS to GRAVITINO_KEY_TO_S3_HADOOP_KEY, so that user-configured s3-path-style-access is properly translated to Hadoop's fs.s3a.path.style.access.
   
   2、FilesetS3CatalogIT.java:
   Replace gravitinoLocalStackContainer.getContainerIpAddress() with localhost:getMappedPort(4566) for the S3 endpoint, as the Docker internal bridge IP is unreachable on macOS/Windows hosts.
   Add fs.s3a.path.style.access=true to all S3 configuration points (direct Hadoop FileSystem setup, catalog properties, and local catalog properties), so that the LocalStack S3 endpoint is accessed via path-style URLs, which LocalStack expects when the endpoint does not have the s3. prefix.
   
   ### Why are the changes needed?
   
   Fix:  https://github.com/apache/gravitino/issues/11391
   
   Bug fix. Two issues cause FilesetS3CatalogIT to hang indefinitely on non-Linux hosts:
   
   1、S3FileSystemProvider.GRAVITINO_KEY_TO_S3_HADOOP_KEY maps Gravitino S3 configuration keys to Hadoop keys, but PATH_STYLE_ACCESS was missing. Users setting s3-path-style-access=true would have it silently ignored.
   
   2、On macOS (Docker Desktop), getContainerIpAddress() returns the Docker bridge IP (e.g., 172.17.0.x) which is not routable from the host because Docker runs inside a Linux VM. Connections to this IP hang until timeout. Additionally, the endpoint http://localhost:4566 lacks the s3. prefix required by LocalStack for virtual-hosted-style request routing. Without fs.s3a.path.style.access=true, the Hadoop S3A connector constructs virtual-hosted-style URLs that LocalStack cannot properly handle, as documented in the [LocalStack S3 endpoint configuration guide](https://hashnode.localstack.cloud/efficient-localstack-s3-endpoint-configuration).
   
   ### Does this PR introduce _any_ user-facing change?
   
   No changes to public APIs. The s3-path-style-access property key already existed in S3Properties, this PR only ensures it is properly propagated by S3FileSystemProvider.
   
   ### How was this patch tested?
   Ran FilesetS3CatalogIT on macOS.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [11391] fix(bundles): run FilesetS3CatalogIT hangs on macOS [gravitino]

Posted by "yuqi1129 (via GitHub)" <gi...@apache.org>.
yuqi1129 merged PR #11393:
URL: https://github.com/apache/gravitino/pull/11393


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [11391] fix(bundles): run FilesetS3CatalogIT hangs on macOS [gravitino]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11393:
URL: https://github.com/apache/gravitino/pull/11393#issuecomment-4609280689

   <!-- coverage-report -->
   ### Code Coverage Report
   |Overall Project|66.8% **`-0.04%`**|:green_circle:|
   |:-|:-|:-:|
   |Files changed|0.0%|:red_circle:|
   <br>
   
   |Module|Coverage||
   |:-|:-|:-:|
   |aliyun|1.72%|:red_circle:|
   |api|46.82%|:green_circle:|
   |authorization-common|85.96%|:green_circle:|
   |aws|3.66% **`-0.58%`**|:red_circle:|
   |azure|2.47%|:red_circle:|
   |catalog-common|10.04%|:red_circle:|
   |catalog-fileset|80.33%|:green_circle:|
   |catalog-glue|66.08%|:green_circle:|
   |catalog-hive|79.55%|:green_circle:|
   |catalog-jdbc-clickhouse|80.02%|:green_circle:|
   |catalog-jdbc-common|45.31%|:green_circle:|
   |catalog-jdbc-doris|80.28%|:green_circle:|
   |catalog-jdbc-hologres|54.03%|:green_circle:|
   |catalog-jdbc-mysql|79.23%|:green_circle:|
   |catalog-jdbc-oceanbase|78.38%|:green_circle:|
   |catalog-jdbc-postgresql|82.29%|:green_circle:|
   |catalog-jdbc-starrocks|78.51%|:green_circle:|
   |catalog-kafka|77.01%|:green_circle:|
   |catalog-lakehouse-generic|44.89%|:green_circle:|
   |catalog-lakehouse-hudi|79.1%|:green_circle:|
   |catalog-lakehouse-iceberg|85.66%|:green_circle:|
   |catalog-lakehouse-paimon|79.29%|:green_circle:|
   |catalog-model|77.72%|:green_circle:|
   |cli|44.51%|:green_circle:|
   |client-java|77.91%|:green_circle:|
   |common|49.99%|:green_circle:|
   |core|82.49%|:green_circle:|
   |filesystem-hadoop3|76.97%|:green_circle:|
   |flink|0.0%|:red_circle:|
   |flink-common|41.2%|:green_circle:|
   |flink-runtime|0.0%|:red_circle:|
   |gcp|14.12%|:red_circle:|
   |hadoop-common|10.39%|:red_circle:|
   |hive-metastore-common|53.26%|:green_circle:|
   |iceberg-common|56.75%|:green_circle:|
   |iceberg-rest-server|72.42%|:green_circle:|
   |idp-basic|85.99%|:green_circle:|
   |integration-test-common|0.0%|:red_circle:|
   |jobs|66.17%|:green_circle:|
   |lance-common|20.83%|:red_circle:|
   |lance-rest-server|60.27%|:green_circle:|
   |lineage|53.02%|:green_circle:|
   |optimizer|82.95%|:green_circle:|
   |optimizer-api|21.95%|:red_circle:|
   |server|85.73%|:green_circle:|
   |server-common|73.13%|:green_circle:|
   |spark|32.79%|:red_circle:|
   |spark-common|39.75%|:red_circle:|
   |trino-connector|39.44%|:red_circle:|
   
   <details>
   <summary>Files</summary>
   
   |Module|File|Coverage||
   |:-|:-|:-|:-:|
   |aws|[S3FileSystemProvider.java](https://github.com/flaming-archer/gravitino/blob/e4238a5d0f91acf23dac0fd2c551643ed4b8c22a/bundles/aws/src/main/java/org/apache/gravitino/s3/fs/S3FileSystemProvider.java)|0.0%|:red_circle:|
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org