You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I meet an OOM Exception ,but it's hard to find out . The exception caught outside just says: java.lang.RuntimeException: null
Caused by: java.lang.RuntimeException: null
at io.minio.S3Base.throwEncapsulatedException(S3Base.java:243)
at io.minio.MinioClient.putObject(MinioClient.java:1375)
....
I personally strongly advise to fix this by changing io.minio.S3Base.java:243 with :
- throw new RuntimeException(exc.getCause());
+ throw new RuntimeException("Failed to put object:" + ext.getMessage(), exc);
Unfortunately, only the ExecutionException passed into throwEncapsulatedException has the stack trace from the call site. The cause in it doesn't have a meaningful stack trace since it comes from a different thread. The only way to keep the stack trace would be to keep ExecutionException, but doing so would make pretty much all checked exception annotations on API functions invalid and make it harder to check the type of exception.
A solution is to just avoid the broken synchronous MinioClient wrapper and use MinioAsyncClient directly; at the cost of having to call .get() yourself and having to check exception causes yourself.
I meet an OOM Exception ,but it's hard to find out . The exception caught outside just says: java.lang.RuntimeException: null
I personally strongly advise to fix this by changing io.minio.S3Base.java:243 with :
The error message may be something better.
minio-java/api/src/main/java/io/minio/S3Base.java
Line 243 in 8c7a5be
The text was updated successfully, but these errors were encountered: