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

Set Timeout for Read/Write Locks in RefreshScope #1401

Open
qnnn opened this issue Sep 27, 2024 · 0 comments
Open

Set Timeout for Read/Write Locks in RefreshScope #1401

qnnn opened this issue Sep 27, 2024 · 0 comments

Comments

@qnnn
Copy link
Contributor

qnnn commented Sep 27, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants