Skip to content

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).
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Mar 8, 2025
@dimas-b dimas-b merged commit a3f3ab8 into apache:main Mar 8, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Mar 8, 2025
@dimas-b dimas-b deleted the optional-entity-cache branch March 8, 2025 01:36
dimas-b added a commit to dimas-b/polaris that referenced this pull request Mar 10, 2025
Following up on apache#1131:

* Fix annotations in `PolarisEntityManager`

* Add unit tests for running without `EntityCache`
dimas-b added a commit that referenced this pull request Mar 11, 2025
Following up on #1131:

* Fix annotations in `PolarisEntityManager`

* Add unit tests for running without `EntityCache`
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