aws-sdk-java icon indicating copy to clipboard operation
aws-sdk-java copied to clipboard

S3 FileDownload fails during joining parts and gives filelock exception

Open dhikrahashim opened this issue 5 years ago • 4 comments

I am facing the lock issue with my jenkins job

com.amazonaws.services.s3.transfer.exception.FileLockException: Fail to lock /var/jenkins_home/jobs/xxxxxxxxxxx/xxxxxx/workspace/tests.zip at com.amazonaws.services.s3.transfer.DownloadCallable.truncateDestinationFileIfNecessary(DownloadCallable.java:194) at com.amazonaws.services.s3.transfer.DownloadCallable.downloadInParallel(DownloadCallable.java:139) at com.amazonaws.services.s3.transfer.DownloadCallable.downloadInParallel(DownloadCallable.java:99) at com.amazonaws.services.s3.transfer.internal.AbstractDownloadCallable.call(AbstractDownloadCallable.java:100) at com.amazonaws.services.s3.transfer.internal.AbstractDownloadCallable.call(AbstractDownloadCallable.java:40) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Finished: FAILURE

Originally posted by @dhikrahashim in https://github.com/aws/aws-sdk-java/issues/2210#issuecomment-870239106

dhikrahashim avatar Jun 29 '21 05:06 dhikrahashim

Hi @dhikrahashim in order to investigate the issue, we need more information about how you are using the SDK. Preferably fill all the fields of the following issue template:

<!--- Provide a general summary of the issue in the Title above -->

## Describe the issue
<!--- A clear and concise description of the issue -->

## Steps to Reproduce
<!--- Provide a self-contained, concise snippet of code that can be used to reproduce the issue -->
<!--- For more complex issues provide a repo with the smallest reproducible example -->
<!--- Avoid including business logic or unrelated code, it makes diagnosis more difficult -->

## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->

<!--- Include full errors, uncaught exceptions, stack traces, and relevant logs -->
<!--- To turn on SDK logging, follow instructions here: http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-logging.html -->
<!--- If service responses are relevant, please include wirelogs -->

## Your Environment
<!--- Include as many relevant details as possible about your environment -->
* AWS Java SDK version used:
* JDK version used:
* Operating System and version:

debora-ito avatar Jun 30 '21 23:06 debora-ito

It looks like this issue hasn’t been active in longer than a week. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it.

github-actions[bot] avatar Jul 08 '21 00:07 github-actions[bot]

Hi, having the same problem. Do you find any solution?

sherman avatar Aug 31 '21 18:08 sherman

@sherman I renamed the job in jenkins to fix this issue temporarily. Issue occurring again. The last job got aborted and after that all the jobs are locked with the same error

dhikrahashim avatar Oct 22 '21 04:10 dhikrahashim