[ 
https://issues.apache.org/jira/browse/NIFI-1107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15125383#comment-15125383
 ] 

ASF GitHub Bot commented on NIFI-1107:
--------------------------------------

Github user trkurc commented on the pull request:

    https://github.com/apache/nifi/pull/192#issuecomment-177524368
  
    Think I found an edge case - I believe I successfully aborted an upload, 
i.e.,  I had an upload half done, stopped the processor, flushed the queue, 
waited, then sent a different file through, which logged that it aborted the 
upload. I sent the same file through a while later and it failed with the 
following stack trace - 
    
    ```
    2016-01-31 10:24:27,334 ERROR [Timer-Driven Process Thread-8] 
o.a.nifi.processors.aws.s3.PutS3Object
    com.amazonaws.services.s3.model.AmazonS3Exception: The specified upload 
does not exist. The upload ID may be invalid, or the upload may have been 
aborted or completed. (Service: Amazon S3; Status Code: 404; Error Code: 
NoSuchUpload; Request ID: 998A0D40DE65697F)
            at 
com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1219)
 ~[aws-java-sdk-core-1.10.32.jar:na]
            at 
com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:803)
 ~[aws-java-sdk-core-1.10.32.jar:na]
            at 
com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:505) 
~[aws-java-sdk-core-1.10.32.jar:na]
            at 
com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:317) 
~[aws-java-sdk-core-1.10.32.jar:na]
            at 
com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3595) 
~[aws-java-sdk-s3-1.10.32.jar:na]
            at 
com.amazonaws.services.s3.AmazonS3Client.doUploadPart(AmazonS3Client.java:2733) 
~[aws-java-sdk-s3-1.10.32.jar:na]
            at 
com.amazonaws.services.s3.AmazonS3Client.uploadPart(AmazonS3Client.java:2718) 
~[aws-java-sdk-s3-1.10.32.jar:na]
            at 
org.apache.nifi.processors.aws.s3.PutS3Object$1.process(PutS3Object.java:506) 
~[nifi-aws-processors-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
            at 
org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1806)
 ~[na:na]
            at 
org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:1777)
 ~[na:na]
            at 
org.apache.nifi.processors.aws.s3.PutS3Object.onTrigger(PutS3Object.java:316) 
~[nifi-aws-processors-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
            at 
org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
 [nifi-api-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
            at 
org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1139)
 [nifi-framework-core-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
            at 
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:139)
 [nifi-framework-core-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
            at 
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:49)
 [nifi-framework-core-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
            at 
org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:119)
 [nifi-framework-core-0.4.2-SNAPSHOT.jar:0.4.2-SNAPSHOT]
            at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 
[na:1.7.0_10]
            at 
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) 
[na:1.7.0_10]
            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) 
[na:1.7.0_10]
            at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 [na:1.7.0_10]
            at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 [na:1.7.0_10]
            at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
[na:1.7.0_10]
            at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
[na:1.7.0_10]
            at java.lang.Thread.run(Thread.java:722) [na:1.7.0_10]
    ```


> Create new PutS3ObjectMultipart processor
> -----------------------------------------
>
>                 Key: NIFI-1107
>                 URL: https://issues.apache.org/jira/browse/NIFI-1107
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Extensions
>            Reporter: Joe Skora
>            Assignee: Joe Skora
>              Labels: s3
>             Fix For: 0.5.0
>
>
> A new `PutS3ObjectMultipart` processor using the AWS S3 API to upload files 
> larger than those supported by `PutS3Object` which has a [5GB 
> limit|http://docs.aws.amazon.com/AmazonS3/latest/dev/UploadingObjects.html] 
> limit.
> To support S3 compatible endpoints this will also add an `Endpoint Override 
> URL` property to `AbstractAWSProcessor` to set the service 
> [endpoint|http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/AmazonWebServiceClient.html#setEndpoint(java.lang.String)]
>  to override the endpoint URL normally selected based on the the Amazon 
> region.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to