-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Maven build hangs after running S3Client in AWS Lambda application unit test #36526
Comments
/cc @matejvasek (amazon-lambda), @patriot1burke (amazon-lambda), @quarkusio/devtools (maven) |
Sample log output before it hangs:
|
Thread dump post 10 minutes:
|
As a workaround I downgraded to OpenJDK17 and that resolved the issue. It appears the issue is with JDK 19+ only Doing some digging it appears that the root cause is likely an underlying AWS SDK bug: |
Tried with Java 20 and Quarkus 3.5.1. Still broken :( |
This is not a Quarkus issue. |
Describe the bug
When testing S3Client using QuarkusTest and dev services in maven the build gets stuck and will not complete. After 10 minutes it logs a thread dump and terminates.
Expected behavior
The build completes the unit tests and finishes the rest of the build.
Actual behavior
After the unit tests the build freezes and does not complete.
How to Reproduce?
Create quarkus application with an AWS Lambda requestHandler:
public class TestRequestHandler implements RequestHandler<String, String> { @Override public String handleRequest(String s, Context context) { return s; } }
Create a unit test that talks to S3:
`@QuarkusTest
public class LambdaHandlerTest {
}`
Output of
uname -a
orver
No response
Output of
java -version
Java 19+ is impacted
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.4.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546) Maven home: /home/linuxbrew/.linuxbrew/Cellar/maven/3.9.5/libexec Java version: 21, vendor: Homebrew, runtime: /home/linuxbrew/.linuxbrew/Cellar/openjdk/21/libexec Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.15.0-86-generic", arch: "amd64", family: "unix"
Additional information
No response
The text was updated successfully, but these errors were encountered: