Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18972

camel-minio - Unable to run integration tests on m1 max macbook pro

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 3.18.0, 3.20.1, 4.0.0
    • None
    • camel-minio
    • None
    • 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

       

    • Unknown

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jainhitesh9998 Hitesh C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: