timing before s3Service.putObject - bucket digilabs.galleries.4 key - 385964/0742.jpg content length - 4949311 (12:38:43)
then these are Apache logs ...
DEBUG [org.apache.http.headers] >> PUT /385964%2F0742.jpg HTTP/1.1
DEBUG [org.apache.http.headers] >> Date: Tue, 07 May 2013 19:38:43 GMT
DEBUG [org.apache.http.headers] >> Content-MD5: LoAk4JJ2vasltc9bjKk8iw==
DEBUG [org.apache.http.headers] >> Content-Type: image/jpeg
DEBUG [org.apache.http.headers] >> x-amz-meta-md5-hash: 2e8024e09276bdab25b5cf5b8ca93c8b
DEBUG [org.apache.http.headers] >> Authorization: AWS <user id/key removed for security>
DEBUG [org.apache.http.headers] >> Content-Length: 4949311
DEBUG [org.apache.http.headers] >> Connection: Keep-Alive
DEBUG [org.apache.http.headers] >> User-Agent: JetS3t/0.9.0 (Windows 2003/5.2; x86; en; JVM 1.7.0_21)
DEBUG [org.apache.http.headers] >> Expect: 100-continue
DEBUG [org.apache.http.headers] << HTTP/1.1 100 Continue
DEBUG [org.apache.http.headers] << HTTP/1.1 200 OK
DEBUG [org.apache.http.headers] << x-amz-id-2: o/L31ov0Oa7RLNGeBnnqKsvj5FMwtZZuWVmWyeTL5zvkpBTTcxRVJMKZRAfsyC2Z
DEBUG [org.apache.http.headers] << x-amz-request-id: 858143F642961598
DEBUG [org.apache.http.headers] << Date: Tue, 07 May 2013 19:38:44 GMT
DEBUG [org.apache.http.headers] << ETag: "2e8024e09276bdab25b5cf5b8ca93c8b"
DEBUG [org.apache.http.headers] << Content-Length: 0
DEBUG [org.apache.http.headers] << Server: AmazonS3
this print is just after the call to s3Service.putObject - as you see it is almost 30 seconds later!
putObject verification: key = 385964/0742.jpg created fileObject key = 385964/0742.jpg (12:39:13)
uploaded object: S3Object [key=385964/0742.jpg, bucket=digilabs.galleries.4, lastModified=Tue May 07 12:38:44 PDT 2013, dataInputStream=null, Metadata={ETag="2e8024e09276bdab25b5cf5b8ca93c8b", Date=Tue May 07 12:38:44 PDT 2013, Content-Length=4949311, id-2=o/L31ov0Oa7RLNGeBnnqKsvj5FMwtZZuWVmWyeTL5zvkpBTTcxRVJMKZRAfsyC2Z, request-id=858143F642961598, Content-MD5=LoAk4JJ2vasltc9bjKk8iw==, Content-Type=image/jpeg}] (12:39:13)
file 0742.jpg uploaded to S3 (12:39:13)
// add more metadata information? e.g. content length...
fileObject.setContentLength(contentLength);
Debug.debug("timing before s3Service.putObject - bucket " + fileObject.getBucketName()
+ " key - " + fileObject.getKey()
+ " content length - " + fileObject.getContentLength()
);
fileObject = s3Service.putObject(bucketName, fileObject);
Debug.debug("putObject verification: key = " + key + " created fileObject key = " + fileObject.getKey());
Debug.debug("uploaded object: " + fileObject);