spring-cloud-commons icon indicating copy to clipboard operation
spring-cloud-commons copied to clipboard

Set Timeout for Read/Write Locks in RefreshScope

Open qnnn opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. The current refreshScope process controls refresh operations using read/write locks, but there is no timeout set. If the lifecycle function of a bean takes a very long time to execute, it can lead to prolonged blocking during the refresh process or when obtaining the bean, without any related log messages.

Describe the solution you'd like Is it possible to set a timeout for the lock? If so, could I try submitting a PR for this?

qnnn avatar Sep 27 '24 07:09 qnnn