aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.2k stars 846 forks source link

S3AsyncClient stuck on second putObject call #928

Closed caiiiycuk closed 5 years ago

caiiiycuk commented 5 years ago

Hi! I am trying to write simple endpoint that put string into s3 object. I use this code to create client:

            S3AsyncClient awsClient = SharedInstance.create(S3AsyncClient.class,
                    () -> S3AsyncClient.builder()
                            .region(region)
                            .credentialsProvider(credentialsProvider)
                            .httpClient(httpClient)
                            .build());

Where httpClient is:

           NettyNioAsyncHttpClient.builder()
                        .connectionTimeout(Duration.ofSeconds(5))
                        .readTimeout(Duration.ofSeconds(5))
                        .writeTimeout(Duration.ofSeconds(5))
                        .build()

I create S3AsyncClient and save it in static variable, so while my lambda is live this client is reused. Next I have lambda that simply put 'string' into s3 object:

aws.putObject(PutObjectRequest.builder().bucket(bucketName).key(key).build(),
                AsyncRequestBody.fromBytes(bytes)))

Lambda is triggered by API endpoint. I deploy this lambda on aws, and then make request to it with curl.

My first request completes successfully My second request, third and next requests always failed by timeout on putObject. And after a while ... all others request completes successfully

This logs for first call:

START RequestId: bb33e504-f945-11e8-a307-3987a16d4425 Version: $LATEST
752 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
769 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
769 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 8
787 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
788 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
788 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
789 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: available
790 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
790 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
790 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): available
790 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
790 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
791 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
808 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: 441974784 bytes
808 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
810 [main] DEBUG io.netty.util.internal.CleanerJava6 - java.nio.ByteBuffer.cleaner(): available
810 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
872 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 4
1013 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
1013 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
1049 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
1086 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@3b084709
1087 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@3224f60b
1087 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@63e2203c
1087 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@1efed156
3091 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: []
3470 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=dynamodb.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])
3627 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: POST
/

amz-sdk-invocation-id:dcfb3305-691e-8682-9ce6-128f818a32db
amz-sdk-retry:0/0/500
content-length:104
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20181206T105736Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==
x-amz-target:DynamoDB_20120810.GetItem

amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target
c27ae70d80ef53c618222243ba0c04c18c8aed3c612512d545881038402a232e
3629 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T105736Z
20181206/us-east-1/dynamodb/aws4_request
8af09de272ef948a42ce6e4343c55f80ef29d64944274162e80486585844797f
3648 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - Generating a new signing key as the signing key not available in the cache for the date: 1544054400000
3967 [main] DEBUG io.netty.handler.ssl.OpenSsl - netty-tcnative not in the classpath; OpenSslEngine will be unavailable.
4809 [main] DEBUG io.netty.handler.ssl.JdkSslContext - Default protocols (JDK): [TLSv1.2, TLSv1.1, TLSv1]
4809 [main] DEBUG io.netty.handler.ssl.JdkSslContext - Default cipher suites (JDK): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA]
5047 [main] DEBUG com.company.SimplifiedFuture - Operation db.getItem pk: test-player-id sk: test-game-id_storage is started
5071 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 1 (auto-detected)
5087 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: true
5087 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
5150 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - Loopback interface: lo (lo, 127.0.0.1)
5151 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
5152 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: b2:16:70:ff:fe:13:17:ec (auto-detected)
5190 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
5190 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
5268 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: [software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6, software.amazon.awssdk.services.s3.internal.handlers.CreateBucketInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@4313f5bc, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@7f010382, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@1e802ef9]
5327 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
5327 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
5527 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6' modified the message with its modifyHttpRequest method.
5527 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[], queryParameters=[])
5529 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1' modified the message with its modifyHttpRequest method.
5529 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[Expect], queryParameters=[])
5532 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[amz-sdk-invocation-id, Expect, User-Agent], queryParameters=[])
5568 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: PUT
/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6

amz-sdk-invocation-id:d91c7b9e-afbc-8ae9-79bf-cbcaef350298
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T105738Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
5569 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T105738Z
20181206/us-east-1/s3/aws4_request
8261fa0c3f8ff1f253a92c5000910edef974d00edfa85ffff60b796b482ef113
5569 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - Generating a new signing key as the signing key not available in the cache for the date: 1544054400000
5647 [main] DEBUG com.company.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6 is started
5647 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation s3.putObject storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, time out 19782 ms
5712 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 4
5712 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 4
5712 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
5712 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
5712 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
5712 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
5712 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
5713 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
5713 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
5713 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
5713 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: true
5748 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
5748 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
5749 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
6132 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
6132 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
6134 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@6385a438
6411 [aws-java-sdk-NettyEventLoop-0-2] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096
6411 [aws-java-sdk-NettyEventLoop-0-2] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxSharedCapacityFactor: 2
6411 [aws-java-sdk-NettyEventLoop-0-2] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.linkCapacity: 16
6411 [aws-java-sdk-NettyEventLoop-0-2] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8
8594 [aws-java-sdk-NettyEventLoop-0-2] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x6d655f4d, L:/169.254.76.25:35926 - R:gpx-play-profile.s3.amazonaws.com/52.217.0.27:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
8594 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x84631c70, L:/169.254.76.25:35928 - R:gpx-play-profile.s3.amazonaws.com/52.217.0.27:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
8594 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.handler.ssl.SslHandler - [id: 0xb33a589f, L:/169.254.76.25:39418 - R:dynamodb.us-east-1.amazonaws.com/52.119.226.140:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
8749 [aws-java-sdk-NettyEventLoop-0-0] DEBUG software.amazon.awssdk.request - Received successful response: 200
8847 [aws-java-sdk-NettyEventLoop-0-1] DEBUG software.amazon.awssdk.request - Received successful response: 200
8913 [Thread-0] TRACE software.amazon.awssdk.request - Parsing service response JSON.
8914 [Thread-0] DEBUG software.amazon.awssdk.requestId - x-amzn-RequestId : NIGJHLTEMBJHJUJLVRAP80T5N7VV4KQNSO5AEMVJF66Q9ASUAAJG
8967 [Thread-1] TRACE software.amazon.awssdk.request - Parsing service response XML.
9049 [Thread-1] TRACE software.amazon.awssdk.request - Done parsing service response.
9227 [Thread-0] TRACE software.amazon.awssdk.request - Done parsing service response.
9327 [main] DEBUG com.company.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6 is finished, consumed time 3620 ms
9409 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: []
9410 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=dynamodb.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])
9427 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: POST
/

amz-sdk-invocation-id:4ea80079-c8e7-a411-d3e8-a098cbf60096
amz-sdk-retry:0/0/500
content-length:194
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20181206T105742Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==
x-amz-target:DynamoDB_20120810.PutItem

amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target
43ff6af063bbb4b36d7e0898048a2913a58def918a268b4b3e30e57298169f82
9427 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T105742Z
20181206/us-east-1/dynamodb/aws4_request
1be50864bddb13fce59b6f5f8c3e95f0d0b96b53c7cb8790a5dd60c4b091d05e
9486 [main] DEBUG com.company.SimplifiedFuture - Operation db.putItem pk: test-player-id sk: test-game-id_storage is started
9487 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation db.putItem pk: test-player-id sk: test-game-id_storage, time out 16710 ms
9487 [aws-java-sdk-NettyEventLoop-0-0] DEBUG software.amazon.awssdk.request - Received successful response: 200
9489 [Thread-2] TRACE software.amazon.awssdk.request - Parsing service response JSON.
9489 [Thread-2] DEBUG software.amazon.awssdk.requestId - x-amzn-RequestId : RID69IBA5TBT9B192KAD9DMJDNVV4KQNSO5AEMVJF66Q9ASUAAJG
9532 [Thread-2] TRACE software.amazon.awssdk.request - Done parsing service response.
9566 [main] DEBUG com.company.SimplifiedFuture - Operation db.putItem pk: test-player-id sk: test-game-id_storage is finished, consumed time 60 ms
9566 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation db.getItem pk: test-player-id sk: test-game-id_storage, time out 16646 ms
9566 [main] DEBUG com.company.SimplifiedFuture - Operation db.getItem pk: test-player-id sk: test-game-id_storage is finished, consumed time 4281 ms
9607 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: [software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6, software.amazon.awssdk.services.s3.internal.handlers.CreateBucketInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@4313f5bc, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@7f010382, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@1e802ef9]
9608 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6' modified the message with its modifyHttpRequest method.
9608 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/de56d527-007a-4884-9642-a15fd849946a, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/de56d527-007a-4884-9642-a15fd849946a, headers=[], queryParameters=[])
9609 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/de56d527-007a-4884-9642-a15fd849946a, headers=[amz-sdk-invocation-id, User-Agent], queryParameters=[])
9610 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: DELETE
/storage/test-game-id/test-player-id/de56d527-007a-4884-9642-a15fd849946a

amz-sdk-invocation-id:14298350-5aa8-a5d9-ab6e-8be3274fcd34
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T105742Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
9610 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T105742Z
20181206/us-east-1/s3/aws4_request
fabc6c51a08ecada52e72323e33e29c95aa46446cbd251de6a73c1ad379e1ffa
9686 [main] DEBUG com.company.SimplifiedFuture - Operation s3.deleteObject storage/test-game-id/test-player-id/de56d527-007a-4884-9642-a15fd849946a is started
9687 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation s3.deleteObject storage/test-game-id/test-player-id/de56d527-007a-4884-9642-a15fd849946a, time out 16550 ms
9700 [aws-java-sdk-NettyEventLoop-0-1] DEBUG software.amazon.awssdk.request - Received successful response: 204
9701 [Thread-3] TRACE software.amazon.awssdk.request - Parsing service response XML.
9709 [Thread-3] TRACE software.amazon.awssdk.request - Done parsing service response.
9710 [main] DEBUG com.company.SimplifiedFuture - Operation s3.deleteObject storage/test-game-id/test-player-id/de56d527-007a-4884-9642-a15fd849946a is finished, consumed time 23 ms
END RequestId: bb33e504-f945-11e8-a307-3987a16d4425
REPORT RequestId: bb33e504-f945-11e8-a307-3987a16d4425 Duration: 9434.19 ms Billed Duration: 9500 ms Memory Size: 512 MB Max Memory Used: 125 MB

This is logs of second call

START RequestId: cee95d4d-f945-11e8-9819-bf77f139880f Version: $LATEST
32690 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: []
32691 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=dynamodb.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])
32692 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: POST
/

amz-sdk-invocation-id:bf547d96-722d-48ee-75f0-bfef73b3467d
amz-sdk-retry:0/0/500
content-length:104
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20181206T105805Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==
x-amz-target:DynamoDB_20120810.GetItem

amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target
c27ae70d80ef53c618222243ba0c04c18c8aed3c612512d545881038402a232e
32692 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T105805Z
20181206/us-east-1/dynamodb/aws4_request
0aee3a7300361b4b5598623151d3c89d4445bb6a5a9a9beca051ffd5ace24d10
32692 [main] DEBUG com.company.SimplifiedFuture - Operation db.getItem pk: test-player-id sk: test-game-id_storage is started
32693 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: [software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6, software.amazon.awssdk.services.s3.internal.handlers.CreateBucketInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@4313f5bc, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@7f010382, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@1e802ef9]
32694 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6' modified the message with its modifyHttpRequest method.
32694 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e, headers=[], queryParameters=[])
32694 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1' modified the message with its modifyHttpRequest method.
32694 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e, headers=[Expect], queryParameters=[])
32707 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e, headers=[amz-sdk-invocation-id, Expect, User-Agent], queryParameters=[])
32708 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: PUT
/storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e

amz-sdk-invocation-id:222deaad-7a48-27da-391c-459954e8fc8f
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T105805Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
32708 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T105805Z
20181206/us-east-1/s3/aws4_request
cbc48d3837b53fabd5813d03200bc34e918155a7c1f7c83b2c47d33922aa26d9
32709 [main] DEBUG com.company.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e is started
32709 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation s3.putObject storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e, time out 23952 ms
32750 [aws-java-sdk-NettyEventLoop-0-0] DEBUG software.amazon.awssdk.request - Received successful response: 200
32768 [Thread-4] TRACE software.amazon.awssdk.request - Parsing service response JSON.
32768 [Thread-4] DEBUG software.amazon.awssdk.requestId - x-amzn-RequestId : JVFL8JTO391VAAMGIF0QP90AM7VV4KQNSO5AEMVJF66Q9ASUAAJG
32768 [Thread-4] TRACE software.amazon.awssdk.request - Done parsing service response.
32991 [aws-java-sdk-NettyEventLoop-0-3] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x539daaa5, L:/169.254.76.25:35942 - R:gpx-play-profile.s3.amazonaws.com/52.217.0.27:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
56661 [main] DEBUG com.company.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/6697515f-685d-41fd-b285-9c2979c8ae9e is time outed
56661 [main] ERROR com.company.gateway.StoragePut - null
java.util.concurrent.TimeoutException
at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
at com.company.SimplifiedFuture.await(SimplifiedFuture.java:56)
at com.company.gateway.StoragePut.handleRequest(StoragePut.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at lambdainternal.EventHandlerLoader$PojoMethodRequestHandler.handleRequest(EventHandlerLoader.java:259)
at lambdainternal.EventHandlerLoader$PojoHandlerAsStreamHandler.handleRequest(EventHandlerLoader.java:178)
at lambdainternal.EventHandlerLoader$2.call(EventHandlerLoader.java:888)
at lambdainternal.AWSLambda.startRuntime(AWSLambda.java:293)
at lambdainternal.AWSLambda.<clinit>(AWSLambda.java:64)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at lambdainternal.LambdaRTEntry.main(LambdaRTEntry.java:104)
END RequestId: cee95d4d-f945-11e8-9819-bf77f139880f
REPORT RequestId: cee95d4d-f945-11e8-9819-bf77f139880f Duration: 24017.88 ms Billed Duration: 24100 ms Memory Size: 512 MB Max Memory Used: 125 MB

This is logs for calls after a while:

START RequestId: b4d8a083-f947-11e8-9a8f-ddc0529d5b2c Version: $LATEST
847947 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: []
847948 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=dynamodb.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])
847949 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: POST
/

amz-sdk-invocation-id:6526a1db-5322-6210-9c99-71b200d6229f
amz-sdk-retry:0/0/500
content-length:104
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20181206T111140Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==
x-amz-target:DynamoDB_20120810.GetItem

amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target
c27ae70d80ef53c618222243ba0c04c18c8aed3c612512d545881038402a232e
847950 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T111140Z
20181206/us-east-1/dynamodb/aws4_request
259a42dba13191be2c7b643470ee0b596c59eba51a84af0331254b85b75690b9
847951 [main] DEBUG com.company.SimplifiedFuture - Operation db.getItem pk: test-player-id sk: test-game-id_storage is started
847951 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: [software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6, software.amazon.awssdk.services.s3.internal.handlers.CreateBucketInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@4313f5bc, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@7f010382, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@1e802ef9]
847967 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6' modified the message with its modifyHttpRequest method.
847967 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060, headers=[], queryParameters=[])
847967 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1' modified the message with its modifyHttpRequest method.
847967 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060, headers=[Expect], queryParameters=[])
847968 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060, headers=[amz-sdk-invocation-id, Expect, User-Agent], queryParameters=[])
847969 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: PUT
/storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060

amz-sdk-invocation-id:8a1ad0b1-1a6e-7517-b2bf-ea81d5f6aab8
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T111140Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
847969 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T111140Z
20181206/us-east-1/s3/aws4_request
efaba073627ca80f3d86d9db62afeadb00d7499a60ec62513b51f542d293c2b3
847970 [main] DEBUG com.company.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060 is started
847970 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation s3.putObject storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060, time out 23972 ms
848067 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x12e617e0, L:/169.254.76.25:54212 - R:dynamodb.us-east-1.amazonaws.com/52.94.2.106:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
848088 [aws-java-sdk-NettyEventLoop-0-0] DEBUG software.amazon.awssdk.request - Received successful response: 200
848090 [Thread-5] TRACE software.amazon.awssdk.request - Parsing service response JSON.
848106 [Thread-5] DEBUG software.amazon.awssdk.requestId - x-amzn-RequestId : LKSDQ7PTNNC78UF8E4K0VK03CJVV4KQNSO5AEMVJF66Q9ASUAAJG
848107 [Thread-5] TRACE software.amazon.awssdk.request - Done parsing service response.
848147 [aws-java-sdk-NettyEventLoop-0-2] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x524bb76f, L:/169.254.76.25:35752 - R:gpx-play-profile.s3.amazonaws.com/52.217.0.236:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
848205 [aws-java-sdk-NettyEventLoop-0-2] DEBUG software.amazon.awssdk.request - Received successful response: 200
848207 [Thread-6] TRACE software.amazon.awssdk.request - Parsing service response XML.
848207 [Thread-6] TRACE software.amazon.awssdk.request - Done parsing service response.
848208 [main] DEBUG com.company.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/358c84a1-cc31-403f-b3a4-ba2e34487060 is finished, consumed time 238 ms
848208 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: []
848209 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=dynamodb.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])
848210 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: POST
/

amz-sdk-invocation-id:fb4e3d86-3077-d1d4-3c0c-0f3d80858a69
amz-sdk-retry:0/0/500
content-length:194
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20181206T111140Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==
x-amz-target:DynamoDB_20120810.PutItem

amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target
3bda18b7d0d112bce29ead7db5f9113c6747ba412a02c7a41a8e62bd06bba4eb
848210 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T111140Z
20181206/us-east-1/dynamodb/aws4_request
b37bd981b145cd9b6afefc5c2251a3c603ebb7d322ab9e482454835d317bfe98
848211 [main] DEBUG com.company.SimplifiedFuture - Operation db.putItem pk: test-player-id sk: test-game-id_storage is started
848211 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation db.putItem pk: test-player-id sk: test-game-id_storage, time out 23780 ms
848227 [aws-java-sdk-NettyEventLoop-0-0] DEBUG software.amazon.awssdk.request - Received successful response: 200
848248 [Thread-7] TRACE software.amazon.awssdk.request - Parsing service response JSON.
848248 [Thread-7] DEBUG software.amazon.awssdk.requestId - x-amzn-RequestId : SDCTD54HLLQ6T9C2BK5OMI8F0JVV4KQNSO5AEMVJF66Q9ASUAAJG
848248 [Thread-7] TRACE software.amazon.awssdk.request - Done parsing service response.
848249 [main] DEBUG com.company.SimplifiedFuture - Operation db.putItem pk: test-player-id sk: test-game-id_storage is finished, consumed time 38 ms
848249 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation db.getItem pk: test-player-id sk: test-game-id_storage, time out 23750 ms
848249 [main] DEBUG com.company.SimplifiedFuture - Operation db.getItem pk: test-player-id sk: test-game-id_storage is finished, consumed time 177 ms
848249 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: [software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6, software.amazon.awssdk.services.s3.internal.handlers.CreateBucketInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@4313f5bc, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@7f010382, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@1e802ef9]
848250 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@12e61fe6' modified the message with its modifyHttpRequest method.
848250 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[], queryParameters=[])
848251 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, headers=[amz-sdk-invocation-id, User-Agent], queryParameters=[])
848252 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: DELETE
/storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6

amz-sdk-invocation-id:ef489bc7-ebe5-1228-50db-d90cec0f07e6
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T111141Z
x-amz-security-token:FQoGZXIvYXdzEAQaDLUQJ9cFrODvmAEu6iKCAkAUNpkiVZZ2s2Fl1d2PbJeLEoFBOiZuVXlXcN6n6Z5DkV7czlj+94rZXfOBIBfdx9RVnzeyWJ6nns24m+cTo1GqX6o/aSNXJQN97vOyTTofIsMltHn12rdZez1NdOskIDE4W+dax8qsBKS4xS+TynoKbyGXto/dq+eWFo4TwYiHGF5BTVp/8sG0P4a4IdEbQAz39rsveE00eXDYm+QLu6qJxeHOj+1+MoObQNYVHImxuaImGGHSYAfQeJ7Y2qzFXuryrxXONDGnpy7sjOb1T+vQgeEPUKXe9AxeDUuYS7diA6vA6EbQIniuuKVyBvQAdU6YqmX+mP5uJeSvDFssmwDhTCicgaTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
848252 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T111141Z
20181206/us-east-1/s3/aws4_request
9a7f620c7bb4d596d258bf3d6c44913a0ccfc87ca6f588e181fa5c6c8f31df00
848253 [main] DEBUG com.company.SimplifiedFuture - Operation s3.deleteObject storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6 is started
848253 [main] DEBUG com.company.SimplifiedFuture - Awaiting end of operation s3.deleteObject storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6, time out 23747 ms
848446 [aws-java-sdk-NettyEventLoop-0-2] DEBUG software.amazon.awssdk.request - Received successful response: 204
848467 [Thread-8] TRACE software.amazon.awssdk.request - Parsing service response XML.
848467 [Thread-8] TRACE software.amazon.awssdk.request - Done parsing service response.
848468 [main] DEBUG com.company.SimplifiedFuture - Operation s3.deleteObject storage/test-game-id/test-player-id/ffbb0980-216e-48b5-a49e-f04ed85378e6 is finished, consumed time 215 ms
END RequestId: b4d8a083-f947-11e8-9a8f-ddc0529d5b2c
REPORT RequestId: b4d8a083-f947-11e8-9a8f-ddc0529d5b2c Duration: 530.89 ms Billed Duration: 600 ms Memory Size: 512 MB Max Memory Used: 125 MB 

Your Environment

caiiiycuk commented 5 years ago

I set timeout for lambda to 900, and invoke lambda with aws lambda invoke:

time aws lambda invoke --function-name profile-StoragePut-11YEYJRHHTYRM --region us-east-1 /tmp/log --payload "\
{\
    \"httpMethod\": \"POST\", \
    \"queryStringParameters\": {\"id\":\"test-player-id\", \"game\":\"test-game-id\"}, \
    \"body\": \"{'prefix1.v1':'value1','prefix1.v2':'value2','prefix1.v3':'value3'}\" \
}\
"

Time needed to second call is:

real    1m15,940s
user    0m0,516s
sys 0m0,053s

But strangest thing is that cloudwatch does not show any logs after stuck point:

START RequestId: 465ae721-f95c-11e8-ac02-41e55ecfcd40 Version: $LATEST
29590 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: []
29591 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=dynamodb.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])
29592 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: POST
/

amz-sdk-invocation-id:f5e2afe0-f557-1b41-03d4-ff5301ceea80
amz-sdk-retry:0/0/500
content-length:104
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20181206T133854Z
x-amz-security-token:FQoGZXIvYXdzEAcaDCWPbFtwXb7Q1QABKiKCAjkIJo4bFeTPIQWncQPesu+2mdrEsHtJp+f3U+DUJa/GREeRgWMLPyghDn9daGQ5Qv/Ao/QtH8ztgzad+7I1mmAEhOTwzhMmCScMrNNFWpuH/WM8Dgb6KYBFo0GMp3Y5IDy1TwfSSYN2r0riNWIm8vGizNkS9cpARXCLCMdd/u4oevg9vXjeuIhEtdkDeNoRvmJcpCExfo01bLpG5NFNkd0FbIv7BujlV9AOtA26ybTj0VpUiVAXG+gZ+GIrv5vEW1pna4vU7EjxRsJ+1t6FXne7iug4Zf8twCmm8FHcifWrWF6anmufTuyTWIwIs+k+wUTBZaQK3woCMxMbdddTy7oE4yiRxKTgBQ==
x-amz-target:DynamoDB_20120810.GetItem

amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target
c27ae70d80ef53c618222243ba0c04c18c8aed3c612512d545881038402a232e
29592 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T133854Z
20181206/us-east-1/dynamodb/aws4_request
4ac99edb39a8a2d8317a34783358353dfa1d24407db7201eb1e288d717b8ee08
29609 [main] DEBUG com.gamepix.SimplifiedFuture - Operation db.getItem pk: test-player-id sk: test-game-id_storage is started
29610 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: [software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@51e5fc98, software.amazon.awssdk.services.s3.internal.handlers.CreateBucketInterceptor@7c469c48, software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@12e61fe6, software.amazon.awssdk.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@4313f5bc]
29611 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@51e5fc98' modified the message with its modifyHttpRequest method.
29611 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe, headers=[], queryParameters=[])
29611 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@12e61fe6' modified the message with its modifyHttpRequest method.
29611 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe, headers=[Expect], queryParameters=[])
29612 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe, headers=[amz-sdk-invocation-id, Expect, User-Agent], queryParameters=[])
29613 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: PUT
/storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe

amz-sdk-invocation-id:7121b55f-1d42-2b8b-fdd6-670d2b738d94
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T133854Z
x-amz-security-token:FQoGZXIvYXdzEAcaDCWPbFtwXb7Q1QABKiKCAjkIJo4bFeTPIQWncQPesu+2mdrEsHtJp+f3U+DUJa/GREeRgWMLPyghDn9daGQ5Qv/Ao/QtH8ztgzad+7I1mmAEhOTwzhMmCScMrNNFWpuH/WM8Dgb6KYBFo0GMp3Y5IDy1TwfSSYN2r0riNWIm8vGizNkS9cpARXCLCMdd/u4oevg9vXjeuIhEtdkDeNoRvmJcpCExfo01bLpG5NFNkd0FbIv7BujlV9AOtA26ybTj0VpUiVAXG+gZ+GIrv5vEW1pna4vU7EjxRsJ+1t6FXne7iug4Zf8twCmm8FHcifWrWF6anmufTuyTWIwIs+k+wUTBZaQK3woCMxMbdddTy7oE4yiRxKTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
29613 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T133854Z
20181206/us-east-1/s3/aws4_request
be6140950463375120424c132c69ca5a51b7f6c9dc6e6b09dac075c83049f64f
29631 [main] DEBUG com.gamepix.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe is started
29631 [main] DEBUG com.gamepix.SimplifiedFuture - Awaiting end of operation s3.putObject storage/test-game-id/test-player-id/93aec021-51cd-452f-852b-6b3dbef6fcbe, time out 899722 ms
29693 [aws-java-sdk-NettyEventLoop-0-2] DEBUG software.amazon.awssdk.request - Received successful response: 200
29790 [Thread-4] TRACE software.amazon.awssdk.request - Parsing service response JSON.
29790 [Thread-4] DEBUG software.amazon.awssdk.requestId - x-amzn-RequestId : CB6NE7HGMTO9FEHNU8LB38HBBBVV4KQNSO5AEMVJF66Q9ASUAAJG
29791 [Thread-4] TRACE software.amazon.awssdk.request - Done parsing service response.

Event there is no 'REPORT RequestId: ...' record with duration time...

caiiiycuk commented 5 years ago

with --log-type Tail:

caiiiycuk@caiiiycuk-xps:~$ time aws lambda invoke --function-name gpx-play-profile-StoragePut-11YEYJRHHTYRM --region us-east-1 /tmp/log --log-type Tail --payload "\
{\
    \"httpMethod\": \"POST\", \
    \"queryStringParameters\": {\"id\":\"test-player-id\", \"game\":\"test-game-id\"}, \
    \"body\": \"{'prefix1.v1':'value1','prefix1.v2':'value2','prefix1.v3':'value3'}\" \
}\
"
{
    "StatusCode": 200,
    "LogResult": "LnNlcnZpY2VzLnMzLmludGVybmFsLmhhbmRsZXJzLkNyZWF0ZU11bHRpcGFydFVwbG9hZFJlcXVlc3RJbnRlcmNlcHRvckA3ZWU5NTVhOCwgc29mdHdhcmUuYW1hem9uLmF3c3Nkay5zZXJ2aWNlcy5zMy5pbnRlcm5hbC5oYW5kbGVycy5FbmFibGVDaHVua2VkRW5jb2RpbmdJbnRlcmNlcHRvckAxNjc3ZDEsIHNvZnR3YXJlLmFtYXpvbi5hd3NzZGsuc2VydmljZXMuczMuaW50ZXJuYWwuaGFuZGxlcnMuRGlzYWJsZURvdWJsZVVybEVuY29kaW5nSW50ZXJjZXB0b3JANDhmYTBmNDcsIHNvZnR3YXJlLmFtYXpvbi5hd3NzZGsuc2VydmljZXMuczMuaW50ZXJuYWwuaGFuZGxlcnMuRGVjb2RlVXJsRW5jb2RlZFJlc3BvbnNlSW50ZXJjZXB0b3JANmFjMTMwOTEsIHNvZnR3YXJlLmFtYXpvbi5hd3NzZGsuc2VydmljZXMuczMuaW50ZXJuYWwuaGFuZGxlcnMuQWRkQ29udGVudE1kNUhlYWRlckludGVyY2VwdG9yQDVlMzE2Yzc0LCBzb2Z0d2FyZS5hbWF6b24uYXdzc2RrLnNlcnZpY2VzLnMzLmludGVybmFsLmhhbmRsZXJzLkdldEJ1Y2tldFBvbGljeUludGVyY2VwdG9yQDZkMmEyMDljLCBzb2Z0d2FyZS5hbWF6b24uYXdzc2RrLnNlc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cmF0aW9uIHMzLmRlbGV0ZU9iamVjdCBzdG9yYWdlL3Rlc3QtZ2FtZS1pZC90ZXN0LXBsYXllci1pZC8wMmIyY2UzNC0zZDJmLTQwMTMtYTAzYS0xZGI0NTQxZGJkMjYgaXMgZmluaXNoZWQsIGNvbnN1bWVkIHRpbWUgMTAxIG1zCkVORCBSZXF1ZXN0SWQ6IDM5MjQ0M2RkLWY5NWUtMTFlOC1hMzRkLTAxODQyZDk3ZmUyYwpSRVBPUlQgUmVxdWVzdElkOiAzOTI0NDNkZC1mOTVlLTExZTgtYTM0ZC0wMTg0MmQ5N2ZlMmMJRHVyYXRpb246IDExODE3LjM2IG1zCUJpbGxlZCBEdXJhdGlvbjogMTE5MDAgbXMgCU1lbW9yeSBTaXplOiA1MTIgTUIJTWF4IE1lbW9yeSBVc2VkOiAxMDIgTUIJCg==",
    "ExecutedVersion": "$LATEST"
}

real    0m14,227s
user    0m0,405s
sys 0m0,077s
caiiiycuk@caiiiycuk-xps:~$ time aws lambda invoke --function-name gpx-play-profile-StoragePut-11YEYJRHHTYRM --region us-east-1 /tmp/log --log-type Tail --payload "\
{\
    \"httpMethod\": \"POST\", \
    \"queryStringParameters\": {\"id\":\"test-player-id\", \"game\":\"test-game-id\"}, \
    \"body\": \"{'prefix1.v1':'value1','prefix1.v2':'value2','prefix1.v3':'value3'}\" \
}\
"
{
    "StatusCode": 200,
    "LogResult": "ay5zZXJ2aWNlcy5zMy5pbnRlcm5hbC5oYW5kbGVycy5DcmVhdGVNdWx0aXBhcnRVcGxvYWRSZXF1ZXN0SW50ZXJjZXB0b3JAN2VlOTU1YTgsIHNvZnR3YXJlLmFtYXpvbi5hd3NzZGsuc2VydmljZXMuczMuaW50ZXJuYWwuaGFuZGxlcnMuRW5hYmxlQ2h1bmtlZEVuY29kaW5nSW50ZXJjZXB0b3JAMTY3N2QxLCBzb2Z0d2FyZS5hbWF6b24uYXdzc2RrLnNlcnZpY2VzLnMzLmludGVybmFsLmhhbmRsZXJzLk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TUyNSwgdGltZSBvdXQgODg4NDQ5IG1zCjExODEwIFthd3MtamF2YS1zZGstTmV0dHlFdmVudExvb3AtMC0xXSBERUJVRyBzb2Z0d2FyZS5hbWF6b24uYXdzc2RrLnJlcXVlc3QgLSBSZWNlaXZlZCBzdWNjZXNzZnVsIHJlc3BvbnNlOiAyMDQKMTE4MTcgW1RocmVhZC0zXSBUUkFDRSBzb2Z0d2FyZS5hbWF6b24uYXdzc2RrLnJlcXVlc3QgLSBQYXJzaW5nIHNlcnZpY2UgcmVzcG9uc2UgWE1MLgoxMTgyMSBbVGhyZWFkLTNdIFRSQUNFIHNvZnR3YXJlLmFtYXpvbi5hd3NzZGsucmVxdWVzdCAtIERvbmUgcGFyc2luZyBzZXJ2aWNlIHJlc3BvbnNlLgoxMTgyMSBbbWFpbl0gREVCVUcgY29tLmdhbWVwaXguU2ltcGxpZmllZEZ1dHVyZSAtIE9wZXJhdGlvbiBzMy5kZWxldGVPYmplY3Qgc3RvcmFnZS90ZXN0LWdhbWUtaWQvdGVzdC1wbGF5ZXItaWQvODM0ZjBiNTctM2M0NS00ZTRjLWIzYjctZDExYWQ3OGE1NTI1IGlzIGZpbmlzaGVkLCBjb25zdW1lZCB0aW1lIDIzIG1zCkVORCBSZXF1ZXN0SWQ6IDk1OGJjZjk1LWY5NWUtMTFlOC1iNjE5LTlkN2YwZDcwZGU5MwpSRVBPUlQgUmVxdWVzdElkOiA5NThiY2Y5NS1mOTVlLTExZTgtYjYxOS05ZDdmMGQ3MGRlOTMJRHVyYXRpb246IDExNDc0LjM0IG1zCUJpbGxlZCBEdXJhdGlvbjogMTE1MDAgbXMgCU1lbW9yeSBTaXplOiA1MTIgTUIJTWF4IE1lbW9yeSBVc2VkOiAxMDMgTUIJCg==",
    "ExecutedVersion": "$LATEST"
}

real    2m16,552s
user    0m0,478s
sys 0m0,057s

decoded logs:

k.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@4313f5bc]
11779 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@51e5fc98' modified the message with its modifyHttpRequest method.
11779 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/834f0b57-3c45-4e4c-b3b7-d11ad78a5525, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/834f0b57-3c45-4e4c-b3b7-d11ad78a5525, headers=[], queryParameters=[])
11780 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=DELETE, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/834f0b57-3c45-4e4c-b3b7-d11ad78a5525, headers=[amz-sdk-invocation-id, User-Agent], queryParameters=[])
11780 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: DELETE
/storage/test-game-id/test-player-id/834f0b57-3c45-4e4c-b3b7-d11ad78a5525

amz-sdk-invocation-id:c5d22979-3cc8-f3d2-f8b7-6ef933fc1a6a
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T135538Z
x-amz-security-token:FQoGZXIvYXdzEAcaDCWPbFtwXb7Q1QABKiKCAjkIJo4bFeTPIQWncQPesu+2mdrEsHtJp+f3U+DUJa/GREeRgWMLPyghDn9daGQ5Qv/Ao/QtH8ztgzad+7I1mmAEhOTwzhMmCScMrNNFWpuH/WM8Dgb6KYBFo0GMp3Y5IDy1TwfSSYN2r0riNWIm8vGizNkS9cpARXCLCMdd/u4oevg9vXjeuIhEtdkDeNoRvmJcpCExfo01bLpG5NFNkd0FbIv7BujlV9AOtA26ybTj0VpUiVAXG+gZ+GIrv5vEW1pna4vU7EjxRsJ+1t6FXne7iug4Zf8twCmm8FHcifWrWF6anmufTuyTWIwIs+k+wUTBZaQK3woCMxMbdddTy7oE4yiRxKTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
11781 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T135538Z
20181206/us-east-1/s3/aws4_request
845eca86b90e451b33ad6f2c5033d3e80a52fad40657ef6da546cb9fe8dcf327
11798 [main] DEBUG com.gamepix.SimplifiedFuture - Operation s3.deleteObject storage/test-game-id/test-player-id/834f0b57-3c45-4e4c-b3b7-d11ad78a5525 is started
11798 [main] DEBUG com.gamepix.SimplifiedFuture - Awaiting end of operation s3.deleteObject storage/test-game-id/test-player-id/834f0b57-3c45-4e4c-b3b7-d11ad78a5525, time out 888449 ms
11810 [aws-java-sdk-NettyEventLoop-0-1] DEBUG software.amazon.awssdk.request - Received successful response: 204
11817 [Thread-3] TRACE software.amazon.awssdk.request - Parsing service response XML.
11821 [Thread-3] TRACE software.amazon.awssdk.request - Done parsing service response.
11821 [main] DEBUG com.gamepix.SimplifiedFuture - Operation s3.deleteObject storage/test-game-id/test-player-id/834f0b57-3c45-4e4c-b3b7-d11ad78a5525 is finished, consumed time 23 ms
END RequestId: 958bcf95-f95e-11e8-b619-9d7f0d70de93
REPORT RequestId: 958bcf95-f95e-11e8-b619-9d7f0d70de93  Duration: 11474.34 ms   Billed Duration: 11500 ms   Memory Size: 512 MB Max Memory Used: 103 MB 

real time is 2m, but in logs only 11 sec. But in cloud logs I did not see this "tail part", looks like jvm was terminated in the middle and then request is restart, is it possible?

caiiiycuk commented 5 years ago

Another log with >900s execution time:

START RequestId: 7091b82f-f95e-11e8-9ca8-93046b8ed0c5 Version: $LATEST
881 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
917 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
917 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 8
919 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
920 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
920 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
920 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: available
921 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
921 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
921 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): available
921 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
922 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
922 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
923 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: 441974784 bytes
923 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
925 [main] DEBUG io.netty.util.internal.CleanerJava6 - java.nio.ByteBuffer.cleaner(): available
925 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
1000 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 4
1158 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
1158 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
1200 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
1222 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@22a67b4
1223 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@57855c9a
1223 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@3b084709
1223 [main] TRACE io.netty.channel.nio.NioEventLoop - instrumented a special java.util.Set into: sun.nio.ch.EPollSelectorImpl@3224f60b
3518 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: []
3919 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=dynamodb.us-east-1.amazonaws.com, encodedPath=/, headers=[amz-sdk-invocation-id, Content-Length, Content-Type, User-Agent, X-Amz-Target], queryParameters=[])
4078 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: POST
/

amz-sdk-invocation-id:3dbd83ab-5ec1-4a28-912e-5698105227de
amz-sdk-retry:0/0/500
content-length:104
content-type:application/x-amz-json-1.0
host:dynamodb.us-east-1.amazonaws.com
x-amz-date:20181206T135428Z
x-amz-security-token:FQoGZXIvYXdzEAcaDCWPbFtwXb7Q1QABKiKCAjkIJo4bFeTPIQWncQPesu+2mdrEsHtJp+f3U+DUJa/GREeRgWMLPyghDn9daGQ5Qv/Ao/QtH8ztgzad+7I1mmAEhOTwzhMmCScMrNNFWpuH/WM8Dgb6KYBFo0GMp3Y5IDy1TwfSSYN2r0riNWIm8vGizNkS9cpARXCLCMdd/u4oevg9vXjeuIhEtdkDeNoRvmJcpCExfo01bLpG5NFNkd0FbIv7BujlV9AOtA26ybTj0VpUiVAXG+gZ+GIrv5vEW1pna4vU7EjxRsJ+1t6FXne7iug4Zf8twCmm8FHcifWrWF6anmufTuyTWIwIs+k+wUTBZaQK3woCMxMbdddTy7oE4yiRxKTgBQ==
x-amz-target:DynamoDB_20120810.GetItem

amz-sdk-invocation-id;amz-sdk-retry;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target
c27ae70d80ef53c618222243ba0c04c18c8aed3c612512d545881038402a232e
4080 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T135428Z
20181206/us-east-1/dynamodb/aws4_request
fc078909d83f05f7f26222b0c216601be7d3a95ba36d46e1937bc9765f7fe1d9
4099 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - Generating a new signing key as the signing key not available in the cache for the date: 1544054400000
4484 [main] DEBUG io.netty.handler.ssl.OpenSsl - netty-tcnative not in the classpath; OpenSslEngine will be unavailable.
5540 [main] DEBUG io.netty.handler.ssl.JdkSslContext - Default protocols (JDK): [TLSv1.2, TLSv1.1, TLSv1]
5540 [main] DEBUG io.netty.handler.ssl.JdkSslContext - Default cipher suites (JDK): [TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA]
5839 [main] DEBUG com.gamepix.SimplifiedFuture - Operation db.getItem pk: test-player-id sk: test-game-id_storage is started
5839 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 1 (auto-detected)
5862 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: true
5862 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
5864 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - Loopback interface: lo (lo, 127.0.0.1)
5865 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
5918 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 9e:9e:c5:ff:fe:1d:ac:1a (auto-detected)
5961 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
5997 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
6080 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
6080 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
6321 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Creating an interceptor chain that will apply interceptors in the following order: [software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@51e5fc98, software.amazon.awssdk.services.s3.internal.handlers.CreateBucketInterceptor@7c469c48, software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@12e61fe6, software.amazon.awssdk.services.s3.internal.handlers.CreateMultipartUploadRequestInterceptor@7ee955a8, software.amazon.awssdk.services.s3.internal.handlers.EnableChunkedEncodingInterceptor@1677d1, software.amazon.awssdk.services.s3.internal.handlers.DisableDoubleUrlEncodingInterceptor@48fa0f47, software.amazon.awssdk.services.s3.internal.handlers.DecodeUrlEncodedResponseInterceptor@6ac13091, software.amazon.awssdk.services.s3.internal.handlers.AddContentMd5HeaderInterceptor@5e316c74, software.amazon.awssdk.services.s3.internal.handlers.GetBucketPolicyInterceptor@6d2a209c, software.amazon.awssdk.services.s3.internal.handlers.AsyncChecksumValidationInterceptor@75329a49, software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor@161479c6, software.amazon.awssdk.services.s3.internal.handlers.EnableTrailingChecksumInterceptor@4313f5bc]
6401 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 4
6401 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 4
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
6417 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: true
6558 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
6577 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
6577 [aws-java-sdk-NettyEventLoop-0-0] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
6598 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.EndpointAddressInterceptor@51e5fc98' modified the message with its modifyHttpRequest method.
6598 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=s3.amazonaws.com, encodedPath=/gpx-play-profile/storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7, headers=[], queryParameters=[])
6697 [main] DEBUG software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Interceptor 'software.amazon.awssdk.services.s3.internal.handlers.PutObjectInterceptor@12e61fe6' modified the message with its modifyHttpRequest method.
6697 [main] TRACE software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain - Old: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7, headers=[], queryParameters=[])
New: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7, headers=[Expect], queryParameters=[])
6700 [main] DEBUG software.amazon.awssdk.request - Sending Request: DefaultSdkHttpFullRequest(httpMethod=PUT, protocol=https, host=gpx-play-profile.s3.amazonaws.com, port=443, encodedPath=/storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7, headers=[amz-sdk-invocation-id, Expect, User-Agent], queryParameters=[])
6817 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: PUT
/storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7

amz-sdk-invocation-id:de6cbcb7-fd00-80e2-10fe-40953e276375
amz-sdk-retry:0/0/500
host:gpx-play-profile.s3.amazonaws.com
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:20181206T135431Z
x-amz-security-token:FQoGZXIvYXdzEAcaDCWPbFtwXb7Q1QABKiKCAjkIJo4bFeTPIQWncQPesu+2mdrEsHtJp+f3U+DUJa/GREeRgWMLPyghDn9daGQ5Qv/Ao/QtH8ztgzad+7I1mmAEhOTwzhMmCScMrNNFWpuH/WM8Dgb6KYBFo0GMp3Y5IDy1TwfSSYN2r0riNWIm8vGizNkS9cpARXCLCMdd/u4oevg9vXjeuIhEtdkDeNoRvmJcpCExfo01bLpG5NFNkd0FbIv7BujlV9AOtA26ybTj0VpUiVAXG+gZ+GIrv5vEW1pna4vU7EjxRsJ+1t6FXne7iug4Zf8twCmm8FHcifWrWF6anmufTuyTWIwIs+k+wUTBZaQK3woCMxMbdddTy7oE4yiRxKTgBQ==

amz-sdk-invocation-id;amz-sdk-retry;host;x-amz-content-sha256;x-amz-date;x-amz-security-token
UNSIGNED-PAYLOAD
6818 [main] DEBUG software.amazon.awssdk.auth.signer.Aws4Signer - AWS4 String to sign: AWS4-HMAC-SHA256
20181206T135431Z
20181206/us-east-1/s3/aws4_request
4a9dc9470e48bfe0127f06f037e46bdbb28a50b8fa19aed0bf58254b431168ba
6818 [main] TRACE software.amazon.awssdk.auth.signer.Aws4Signer - Generating a new signing key as the signing key not available in the cache for the date: 1544054400000
6898 [main] DEBUG com.gamepix.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7 is started
6899 [main] DEBUG com.gamepix.SimplifiedFuture - Awaiting end of operation s3.putObject storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7, time out 893345 ms
7198 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
7198 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
7200 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@981c9b7
7444 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096
7444 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxSharedCapacityFactor: 2
7444 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.linkCapacity: 16
7444 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8
10938 [aws-java-sdk-NettyEventLoop-0-3] DEBUG io.netty.handler.ssl.SslHandler - [id: 0xc1d00814, L:/169.254.76.17:40058 - R:gpx-play-profile.s3.amazonaws.com/52.216.132.243:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
10977 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x8d5ff028, L:/169.254.76.17:54874 - R:dynamodb.us-east-1.amazonaws.com/52.119.232.242:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
11037 [aws-java-sdk-NettyEventLoop-0-2] DEBUG io.netty.handler.ssl.SslHandler - [id: 0xb5749af7, L:/169.254.76.17:54878 - R:dynamodb.us-east-1.amazonaws.com/52.119.232.242:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
11197 [aws-java-sdk-NettyEventLoop-0-1] DEBUG io.netty.handler.ssl.SslHandler - [id: 0x3f65a3f8, L:/169.254.76.17:40064 - R:gpx-play-profile.s3.amazonaws.com/52.216.132.243:443] HANDSHAKEN: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
11499 [aws-java-sdk-NettyEventLoop-0-2] DEBUG software.amazon.awssdk.request - Received successful response: 200
12101 [Thread-0] TRACE software.amazon.awssdk.request - Parsing service response JSON.
12177 [Thread-0] DEBUG software.amazon.awssdk.requestId - x-amzn-RequestId : DHG9364635E0J6O9TSLR2NTT3FVV4KQNSO5AEMVJF66Q9ASUAAJG
12338 [Thread-0] TRACE software.amazon.awssdk.request - Done parsing service response.
900244 [main] DEBUG com.gamepix.SimplifiedFuture - Operation s3.putObject storage/test-game-id/test-player-id/d2c95db2-bbf6-4c64-b405-d6027dd908a7 is time outed
900244 [main] ERROR com.gamepix.gateway.StoragePut - null
java.util.concurrent.TimeoutException
at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1771)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915)
at com.gamepix.SimplifiedFuture.await(SimplifiedFuture.java:56)
at com.gamepix.gateway.StoragePut.handleRequest(StoragePut.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at lambdainternal.EventHandlerLoader$PojoMethodRequestHandler.handleRequest(EventHandlerLoader.java:259)
at lambdainternal.EventHandlerLoader$PojoHandlerAsStreamHandler.handleRequest(EventHandlerLoader.java:178)
at lambdainternal.EventHandlerLoader$2.call(EventHandlerLoader.java:888)
at lambdainternal.AWSLambda.startRuntime(AWSLambda.java:293)
at lambdainternal.AWSLambda.<clinit>(AWSLambda.java:64)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at lambdainternal.LambdaRTEntry.main(LambdaRTEntry.java:104)
END RequestId: 7091b82f-f95e-11e8-9ca8-93046b8ed0c5
REPORT RequestId: 7091b82f-f95e-11e8-9ca8-93046b8ed0c5 Duration: 899917.67 ms Billed Duration: 900000 ms Memory Size: 512 MB Max Memory Used: 110 MB 

It's strange because my http client is configured for timeout for 5s on connection/read/write

zoewangg commented 5 years ago

Thank you for reporting. This has been fixed via #889 and we will do a release soon.

zoewangg commented 5 years ago

Please try with 2.1.4 and feel free to reopen if you continue to see this error.

caiiiycuk commented 5 years ago

Looks working! Thanks!