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

Fix startup failures with jdbcconfig #262

Merged
merged 2 commits into from
Aug 3, 2022

Conversation

groldan
Copy link
Member

@groldan groldan commented Aug 3, 2022

  • Fix ClassNotFoundException at startup with jdbcconfig
  • Disable caching for JDBCDirectoryStructure
    JDBCDirectoryStructure gets its cache only from
    DefaultCacheProvider.findProvider().
    Unfortunately, there's no sane way of disabling it other than setting the
    default provider to no-op cache.
    And it is necessary because the resources in the cache will never be up
    to date with the database contents, which prevents starting up from an
    empty database, since all instances will think the geoserver security
    manager resources are uninitialized and hence try to upgrade the
    configuration;

@groldan groldan added the bug Something isn't working label Aug 3, 2022
@groldan groldan force-pushed the bug/jdbcconfig_startup_failure branch from 2aa5a14 to d3900b0 Compare August 3, 2022 04:25
JDBCDirectoryStructure gets its cache only from
DefaultCacheProvider.findProvider().

Unfortunately there's no sane way of disabling it other than setting the
default provider to no-op cache.

And it is necessary because the resources in the cache will never be up
to date with the database contents, which prevents starting up from an
empty database, since all instances will think the geoserver security
manager resources are uninitialized and hence try to upgrade the
configuration;
@groldan groldan force-pushed the bug/jdbcconfig_startup_failure branch from 8407a79 to 572651a Compare August 3, 2022 06:43
@groldan groldan changed the title Fix ClassNotFoundException at startup with jdbcconfig Fix startup failures with jdbcconfig Aug 3, 2022
@groldan groldan merged commit 01ed451 into geoserver:main Aug 3, 2022
@groldan groldan deleted the bug/jdbcconfig_startup_failure branch August 3, 2022 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant