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

Workaround an issue where the JNDIInitializer would be called several times #563

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

groldan
Copy link
Member

@groldan groldan commented Oct 24, 2024

Workaround an issue where the JNDIInitializer would be called several times, making it wait for an unavailable JNDI data source multiple rounds instead of just one.

I can't figure out why JNDIDataSourceAutoConfiguration would be instantiated several times when JNDIInitializer fails, so added a static flag to JNDIInitializer to avoid waiting for unavailable databases again and again.

Also Refactor the simple JNDI configuration to auto and plain config classes

Workaround an issue where the JNDIInitializer would be called
several times, making it wait for an unavailable JNDI data source
multiple rounds instead of just one.

I can't figure out why JNDIDataSourceAutoConfiguration would be
instantiated several times when JNDIInitializer fails, so added
a static flag to JNDIInitializer to avoid waiting for unavailable
databases again and again.
@groldan groldan added the bugfix Pull request to fix a bug label Oct 24, 2024
@groldan groldan marked this pull request as ready for review October 24, 2024 01:20
@groldan groldan merged commit e3ac725 into geoserver:main Oct 24, 2024
4 checks passed
@groldan groldan deleted the simplejndi_refactoring branch October 24, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request to fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant