You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Hitesh C (Jira)" <ji...@apache.org> on 2023/01/24 08:28:00 UTC

[jira] [Created] (CAMEL-18972) Unable to run integration tests on m1 max macbook pro

Hitesh C created CAMEL-18972:
--------------------------------

             Summary: Unable to run integration tests on m1 max macbook pro
                 Key: CAMEL-18972
                 URL: https://issues.apache.org/jira/browse/CAMEL-18972
             Project: Camel
          Issue Type: Bug
          Components: camel-minio
    Affects Versions: 3.20.1, 3.18.0, 4.0
         Environment: Macbook pro m1 

macOS 12.6.2

Docker version 20.10.21

java jdk 17 for camel 4.0 and java 8/11 for versions below that

 
            Reporter: Hitesh C


Hi,

I am working on some customisation of camel-minio component. The integration tests written for it are failing due to some issue with connectivity with testcontainers on m1 Max mac book pro .



log snippet:

```

ErrorResponse(code = XMinioServerNotInitialized, message = Server not initialized, please try again., bucketName = mycamel, objectName = null, resource = /mycamel, requestId = 173D2C3AD8A1384E, hostId = e7662b13-45a2-4748-866b-0ee7a07cf096)
request={method=GET, url=http://localhost:59988/mycamel?location=, headers=Host: localhost:59988
Accept-Encoding: identity
User-Agent: MinIO (Mac OS X; aarch64) minio-java/8.5.1
Content-MD5: 1B2M2Y8AsgTpgAmY7PhCfg==
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date: 20230124T065427Z
Authorization: ??
}
response={code=503, headers=Accept-Ranges: bytes
Content-Length: 306
Content-Security-Policy: block-all-mixed-content
Content-Type: application/xml
Retry-After: 120
Server: MinIO
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Origin
Vary: Accept-Encoding
X-Amz-Request-Id: 173D2C3AD8A1384E
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Date: Tue, 24 Jan 2023 06:54:27 GMT
}

        at io.minio.S3Base$1.onResponse(S3Base.java:690)
        at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   MinioComponentIT>CamelTestSupport.setUp:377->CamelTestSupport.doSetUp:539->CamelTestSupport.startCamelContext:763 ? FailedToStartRoute
[ERROR]   MinioComponentIT>CamelTestSupport.setUp:377->CamelTestSupport.doSetUp:539->CamelTestSupport.startCamelContext:763 ? FailedToStartRoute
[ERROR]   MinioConsumerIT>CamelTestSupport.setUp:377->CamelTestSupport.doSetUp:539->CamelTestSupport.startCamelContext:763 ? FailedToStartRoute

```

 

The same test cases run alright on x86 linux machines.

 

I have tried a lot of solutions provided by forums including the following dependency

 
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version></version>
<scope>test</scope>
</dependency>
 
 but none of them  resolved the issue.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)