-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 timing out on CI (tests using LocalStack) #5045
Comments
After some more research, I determined that the issue starts with version 2.21.0. On version Could the internal refactor of authentication be to blame here? |
For even more information, it seems that the S3 requests are not reaching LocalStack: |
Yes, You did the recommended action and reached out to Localstack team. Let's keep track of their investigation - localstack/localstack#10565 |
It looks like this issue has not been active for more than five days. 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. |
Unfortunately, the issue is still a problem. I'm planning to do some more digging soon and will hopefully be able to come up with some additional information. |
It looks like this issue has not been active for more than five days. 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. |
This is still a problem and the investigation is ongoing. |
It looks like this issue has not been active for more than five days. 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. |
Investigation still ongoing. |
The issue turned out to be AWS SDK proxies not supporting IP ranges: |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
AWS SDK
2.21.12+
causes our Gitlab CI runner (an AWSt3.xlarge
instance) to time out on S3 operations. While the tests usually take 6-10 min, here they take up to 43 minutes before failing the build.Importantly, everything works perfectly well on a local machine (the entire build takes about 3.5min). The issues only occur on CI. Furthermore, the issue does not occur on version
2.20.63
. On2.20.63
, all S3 operations take milliseconds, as expected (even on CI).Expected Behavior
S3 operations should not time out during CI builds.
Current Behavior
S3 operations time out during CI builds.
Reproduction Steps
We are running the tests using Maven and creating a LocalStack instance using TestContainers (
1.19.7
). The relevant code is:Below is a simplified version of our
.gitlab-ci.yml
:I don't think our
ci_settings.xml
proxies are to blame, but just in case here's a simplified version of those:Possible Solution
it seems the issue was introduced in AWS SDK somewhere between
2.20.63
and2.21.12
. I would assume some code introduced between those version is the reason for this issue.Additional Information/Context
I noticed the bug when upgrading
spring-cloud-aws-dependencies
from3.0.1
to3.0.3+
.spring-cloud-aws-dependencies:3.0.1
depends on AWS SDK2.20.63
, whilespring-cloud-aws-dependencies:3.0.3
depends on2.21.12
.I noticed the bug appears on
spring-cloud-aws-dependencies:3.0.3
, but disappears when I manually downgrade AWS SDK to2.21.12
. I tried upgrading AWS SDK to2.25.17
, but the problem persists. Therefore, it seems the issue was introduced in AWS SDK somewhere between2.20.63
and2.21.12
.The runner instance shows only mild memory and CPU consumption, so it doesn't seem like lack of resources is the problem here.
AWS Java SDK version used
2.21.12
JDK version used
maven:3.9.4-amazoncorretto-21 (docker image)
Operating System and version
Alpine Linux 3.16
The text was updated successfully, but these errors were encountered: