Skip to content

fix: add name for default ehcache #17887

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

Merged
merged 1 commit into from
Jun 26, 2024
Merged

fix: add name for default ehcache #17887

merged 1 commit into from
Jun 26, 2024

Conversation

vietnguyen
Copy link
Contributor

@vietnguyen vietnguyen commented Jun 26, 2024

  • This is to fix hibernate warnings like below
core-web-1      | WARN  org.hibernate.orm.cache [main] HHH90001007: Using legacy cache name [org.hibernate.cache.spi.UpdateTimestampsCache] because configuration could not be found for cache [default-update-timestamps-region]. Update your configuration to rename cache [org.hibernate.cache.spi.UpdateTimestampsCache] to [default-update-timestamps-region].
core-web-1      | WARN  org.hibernate.orm.cache [main] HHH90001007: Using legacy cache name [org.hibernate.cache.internal.StandardQueryCache] because configuration could not be found for cache [default-query-results-region]. Update your configuration to rename cache [org.hibernate.cache.internal.StandardQueryCache] to [default-query-results-region].
core-web-1      | WARN  org.hibernate.orm.cache [main] HHH90001006: Missing cache[org.hisp.dhis.version.Version] was created on-the-fly. The created cache will use a provider-specific default configuration: make sure you defined one. You can disable this warning by setting 'hibernate.cache.ehcache.missing_cache_strategy' to 'create'.

Test

  • This change only affects hibernate second level cache function which is covered in HibernateQueryCacheTest.

@vietnguyen vietnguyen changed the title fix: add alias for default ehcache fix: add name for default ehcache Jun 26, 2024
Copy link

@vietnguyen vietnguyen merged commit fbe637c into master Jun 26, 2024
15 checks passed
@vietnguyen vietnguyen deleted the hibernate-config branch June 26, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants