Skip to content
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

DeadLock when using CacheResult with Spring Data #7548

Closed
dubilyer opened this issue Mar 4, 2020 · 6 comments
Closed

DeadLock when using CacheResult with Spring Data #7548

dubilyer opened this issue Mar 4, 2020 · 6 comments
Labels
area/cache area/spring Issues relating to the Spring integration kind/bug Something isn't working
Milestone

Comments

@dubilyer
Copy link

dubilyer commented Mar 4, 2020

Describe the bug
When using CacheResult annotation on method performing several calls to SpringData repository the program is stuck.

Expected behavior
Everything works smoothly

Actual behavior
All threads are in Waiting state (dump)

To Reproduce
Steps to reproduce the behavior:

  1. Create a project with Spring Data repository (extends CrudRepository)
  2. Create a method in another class, performing several calls (findById).
  3. Annotate it with CacheResult

Configuration

#---data
quarkus.datasource.url=jdbc:postgresql://[my-rds]
quarkus.datasource.driver=org.postgresql.Driver
quarkus.datasource.username=[user]
quarkus.datasource.password=[password]
quarkus.datasource.max-size=200
quarkus.datasource.min-size=10
quarkus.datasource.validation-query-sql=select 1;
quarkus.hibernate-orm.database.generation=update
#---native
quarkus.ssl.native = true
quarkus.swagger-ui.always-include=true
#---security
smallrye.jwt.path.groups=cognito:groups
mp.jwt.verify.publickey.location=[my cognito location]
mp.jwt.verify.issuer=[my cognito issuer]
quarkus.smallrye-jwt.enabled=true
#---CORS
quarkus.http.cors=true
quarkus.http.cors.origins=[origin]
quarkus.http.cors.methods=GET,PUT,POST,OPTIONS
quarkus.http.cors.headers=accept,authorization,content-type,x-requested-with
quarkus.http.cors.exposed-headers=Content-Disposition
quarkus.http.cors.access-control-max-age=24H
#----logs
quarkus.log.level=INFO
#----logs
quarkus.cache.caffeine.test-owner-chain.initial-capacity=10

Environment (please complete the following information):

  • Output of uname -a : Darwin Eduards-MacBook-Pro.local 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64
  • Output of java -version: openjdk version "1.8.0_242" OpenJDK Runtime Environment (build 1.8.0_242-b06) OpenJDK 64-Bit GraalVM CE 19.3.1 (build 25.242-b06-jvmci-19.3-b07, mixed mode)
  • GraalVM version (if different from Java): graalvm-ce-java8-19.3.1
  • Quarkus version or git rev: 1.2.1.Final
  • Build tool : Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T18:06:16+03:00)
@dubilyer dubilyer added the kind/bug Something isn't working label Mar 4, 2020
@quarkusbot
Copy link

/cc @geoand

@quarkusbot quarkusbot added the area/spring Issues relating to the Spring integration label Mar 4, 2020
@geoand
Copy link
Contributor

geoand commented Mar 4, 2020

Thanks for reporting this.

I was not able to reproduce the problem unfortunately. Would you be able to supply a minimal reproducer containing only the Spring Data JPA and cache stuff that exhibits the problematic behavior?

@dubilyer
Copy link
Author

dubilyer commented Mar 4, 2020

I will try.

@gsmet
Copy link
Member

gsmet commented Mar 4, 2020

/cc @gwenneg

@gwenneg
Copy link
Member

gwenneg commented Nov 13, 2020

This probably shares the same root cause than #13158.

@gwenneg
Copy link
Member

gwenneg commented Nov 13, 2020

There's a good chance this issue was fixed with #13244.

Feel free to reopen if that's not the case.

@gwenneg gwenneg closed this as completed Nov 13, 2020
@gsmet gsmet added this to the 1.10.0.Final milestone Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cache area/spring Issues relating to the Spring integration kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants