This is an automated email from the ASF dual-hosted git repository.
liurenjie1024 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git
The following commit(s) were added to refs/heads/main by this push:
new 1aee142c7 Fix moto server port conflict with macOS AirPlay Receiver
(#2090)
1aee142c7 is described below
commit 1aee142c7f74a888c8135c06826490d9fbf44b5b
Author: Kevin Liu <[email protected]>
AuthorDate: Thu Jan 29 19:11:05 2026 -0500
Fix moto server port conflict with macOS AirPlay Receiver (#2090)
## Which issue does this PR close?
- Closes #.
## What changes are included in this PR?
This PR changes the default moto server port from `5000` to `5001`. Port
5000 is used by AirPlay Receiver on MacOS.
The same was done in pyiceberg:
https://github.com/apache/iceberg-python/pull/292
## Are these changes tested?
Yes locally. I also did a global search for 5000
---
crates/catalog/glue/src/utils.rs | 2 +-
crates/test_utils/src/lib.rs | 2 +-
dev/docker-compose.yaml | 7 +++++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/crates/catalog/glue/src/utils.rs b/crates/catalog/glue/src/utils.rs
index 457471b34..f3be58381 100644
--- a/crates/catalog/glue/src/utils.rs
+++ b/crates/catalog/glue/src/utils.rs
@@ -435,7 +435,7 @@ mod tests {
#[tokio::test]
async fn test_config_with_custom_endpoint() {
let properties = HashMap::new();
- let endpoint_url = "http://custom_url:5000";
+ let endpoint_url = "http://custom_url:5001";
let sdk_config = create_sdk_config(&properties,
Some(&endpoint_url.to_string())).await;
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs
index 4511231d7..e44d96c38 100644
--- a/crates/test_utils/src/lib.rs
+++ b/crates/test_utils/src/lib.rs
@@ -47,7 +47,7 @@ mod common {
pub const DEFAULT_MINIO_PORT: u16 = 9000;
pub const DEFAULT_REST_CATALOG_PORT: u16 = 8181;
pub const DEFAULT_HMS_PORT: u16 = 9083;
- pub const DEFAULT_GLUE_PORT: u16 = 5000;
+ pub const DEFAULT_GLUE_PORT: u16 = 5001;
pub const DEFAULT_GCS_PORT: u16 = 4443;
/// Returns the MinIO S3-compatible endpoint.
diff --git a/dev/docker-compose.yaml b/dev/docker-compose.yaml
index 0df017a75..2f0d08fbd 100644
--- a/dev/docker-compose.yaml
+++ b/dev/docker-compose.yaml
@@ -137,9 +137,12 @@ services:
networks:
iceberg_test:
ports:
- - "5000:5000"
+ - "5001:5001"
+ environment:
+ # Use port 5001 instead of default 5000 to avoid conflict with macOS
AirPlay Receiver.
+ - MOTO_PORT=5001
healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:5000/moto-api/"]
+ test: ["CMD", "curl", "-f", "http://localhost:5001/moto-api/"]
interval: 5s
timeout: 5s
retries: 5