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
Bugs found during the use of Alluxio Java SDK #18540
Comments
Could you show your alluxio configuration? Then I can find whether it is just a configuration problem. |
@YichuanSun master configuration:
worker configuration:
The client only configured master information. The code for the download interface is as follows:
|
Have you found errors in the master, worker and proxy logs? Can you share the logs?
|
@jasondrogba error log is: java. io. IOException: Broken pipe org. apache. catalina. connector ClientAbortException: java. io. IOException: Broken pipe. |
@jasondrogba Is there any solution to the concurrency issue caused by adding a download interface similar to a proxy node to the worker node? |
@Never-D I guess this error message comes from springboot? It may be that the timeout period of the tomcat configuration or nginx configuration is too small.
I think you can increase the timeout of springboot server and nginx, or increase the CPU and memory of the alluxio node. |
@jasondrogba 2024-03-19 11:18:58,227 INFO ALLUXIO-PROXY-WEB-SERVICE-224 - Alluxio S3 API received GET request: URI=http://alluxio-test-proxy.dev.sheincorp.cn/api/v1/paths/%2Fshein-os/cos-alluxio-test/data/upload-test/2/nexus-test/aws-sdk-cpp-v1.0.tar.gz/download-file User=null Media Type=null Query Parameters={} Path Parameters={} |
@jasondrogba Download 162MB file, the download size is incorrect, but there is no error message. |
According to this line, I found the error from AlluxioFileInStream
you can try to increase MaxDirectMemorySize. |
One possible reason: you have to close the |
Especially in such a high concurrency case. |
Hi @Never-D
Can you check the log of alluxio-worker? Generally it's caused by short of direct memory at the alluxio-worker side when reading concurrently. Increase the value of For the |
@YichuanSun The error I sent was a proxy error |
There are no error logs in the worker node |
Download 162MB file, the download size is incorrect, but there is no error message. |
Alluxio Version:
server version is 2.9.3 (Java SDK Reference Method: implementation ("org.alluxio:alluxio-shaded-client:2.9.3"))
Describe the bug
My service encapsulates an HTTP protocol file download interface using SDK and uses nginx as the reverse proxy before me. When testing this HTTP interface, it was found that there were partial download errors when the concurrency was between 100 and 1000(The downloaded package is approximately 160MB). The specific error message is: java. io. IOException: Broken pipe org. apache. catalina. connector ClientAbortException: java. io. IOException: Broken pipe.
My code is as follows:
To Reproduce
Start a springboot service using the above code and SDK, and execute the wget command concurrently to reproduce the bug scenario I described
Expected behavior
Hope to provide a solution or repair plan
Urgency
This bug has caused our alloxio to be unable to provide high concurrency file downloads, seriously affecting usage
Are you planning to fix it
I am currently unsure if the problem is caused by missing configuration of client or server parameters, or if there are bugs in the code itself, so I do not have a repair plan or plan yet
Additional context
If you are unable to repair it in a timely manner, you can also send me the repair or solution, and I can try to repair it myself
The text was updated successfully, but these errors were encountered: