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

Allow MetaStoreManagerFactory to produce null EntityCache #1131

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

dimas-b
Copy link
Contributor

@dimas-b dimas-b commented Mar 6, 2025

Following up on #1055, this refactoring does not remove EntityCache, but allows it to be null in principle, should a particular MetaStoreManagerFactory implementation choose not to use an EntityCache.

  • Remove bean producer for EntityCache (beans cannot be null).

  • Harmonize all PolarisEntityManager producers (explicit and CDI) to go through RealmEntityManagerFactory (tangential to the cache being null, but related).

Following up on apache#1055, this refactoring does not remove `EntityCache`,
but allows it to be `null` in principle, should a particular
MetaStoreManagerFactory implementation choose not to use an `EntityCache`.

* Remove bean producer for `EntityCache` (beans cannot be `null`).

* Harmonize all `PolarisEntityManager` producers (explicit and CDI)
  to go through `RealmEntityManagerFactory` (tangential to the cache
  being null, but related).
@dimas-b dimas-b merged commit a3f3ab8 into apache:main Mar 8, 2025
5 checks passed
@dimas-b dimas-b deleted the optional-entity-cache branch March 8, 2025 01: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.

2 participants