I am using @Cacheable in Spring Boot 2.0 with EHcache, with sync=true.
I understand that if we set sync=true, all threads wait until one thread fetches the value to cache by executing the method that used @Cacheable.
What happens if there is an exception in that method? Do the other threads keep waiting or is the lock released?