-
Notifications
You must be signed in to change notification settings - Fork 496
The ArrayIndexOutOfBoundsException occurs when Minio Java SDK operates concurrently in docker container with CPU architecture of arm64 #1135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As you are using wrong dependencies particularly Use correct dependencies and reopen if the issue persists. |
Yes, I forced the dependency on the version of However, I found another strange problem. I created a clean maven project that only dependencies on if I additionally use If anyone knows the reason, you can tell me the reason. The following is <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.blinkfox</groupId>
<artifactId>mvn-test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>mvn-test</name>
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>8.0.3</version>
</dependency>
</dependencies>
</project> dependencies: [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ mvn-test ---
[INFO] com.blinkfox:mvn-test:jar:1.0.0-SNAPSHOT
[INFO] \- io.minio:minio:jar:8.0.3:compile
[INFO] +- com.carrotsearch.thirdparty:simple-xml-safe:jar:2.7.1:compile
[INFO] +- com.google.guava:guava:jar:29.0-jre:compile
[INFO] | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | +- org.checkerframework:checker-qual:jar:2.11.1:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.3.4:compile
[INFO] | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] +- com.squareup.okhttp3:okhttp:jar:4.8.1:compile
[INFO] | +- com.squareup.okio:okio:jar:2.7.0:compile
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.3.70:compile
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.3.72:compile
[INFO] | \- org.jetbrains:annotations:jar:13.0:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.2:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.11.2:compile
[INFO] \- com.fasterxml.jackson.core:jackson-databind:jar:2.11.2:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------ The following are the dependencies when the parent component of <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.blinkfox</groupId>
<artifactId>mvn-test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>mvn-test</name>
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>8.0.3</version>
</dependency>
</dependencies>
</project> dependencies: [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ mvn-test ---
[INFO]
[INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) @ mvn-test ---
[INFO] com.blinkfox:mvn-test:jar:1.0.0-SNAPSHOT
[INFO] \- io.minio:minio:jar:8.0.3:compile
[INFO] +- com.carrotsearch.thirdparty:simple-xml-safe:jar:2.7.1:compile
[INFO] +- com.google.guava:guava:jar:29.0-jre:compile
[INFO] | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | +- org.checkerframework:checker-qual:jar:2.11.1:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.3.4:compile
[INFO] | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] +- com.squareup.okhttp3:okhttp:jar:3.14.9:compile
[INFO] | \- com.squareup.okio:okio:jar:1.17.2:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.11.3:compile
[INFO] \- com.fasterxml.jackson.core:jackson-databind:jar:2.11.3:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------ |
Not sure how to resolve your dependency problems. https://stackoverflow.com/questions/24962607/multiple-versions-of-the-same-dependency-in-maven may help. Additionally |
I know the reason, it is the limitation of SpringBoot。 |
Uh oh!
There was an error while loading. Please reload this page.
My Java web application uses the MinIO Java SDK, and there is no problem when it is directly deployed on the CPU architecture of
amd64
andarm64
through the JVM for concurrent testing. However, if I deploy start the application viaDocker
underarm64
CPU architecture, I open the random putObject and getObject of 30 concurrent file objects,ArrayIndexOutOfBoundsException
will be thrown for a while.In addition, I used the API of
aws-java-sdk-s3
to useDocker
underarm64
to perform 30 concurrent operations without throwingArrayIndexOutOfBoundsException
.The exception logs is as follows:
My environment:
aarch64
19.03.8
1.8.0_201
8.0.3
The text was updated successfully, but these errors were encountered: