Skip to content

Use injected RealmConfig in JdbcMetaStoreManagerFactory#3412

Merged
dimas-b merged 2 commits intoapache:mainfrom
dimas-b:jdbc-realm-config
Jan 19, 2026
Merged

Use injected RealmConfig in JdbcMetaStoreManagerFactory#3412
dimas-b merged 2 commits intoapache:mainfrom
dimas-b:jdbc-realm-config

Conversation

@dimas-b
Copy link
Contributor

@dimas-b dimas-b commented Jan 10, 2026

Use injected RealmConfig in JdbcMetaStoreManagerFactory

  • Improve code isolation by using RealmConfig (like most other code)
    instead of the lower-level PolarisConfigurationStore

  • This also enabled proper CDI request-scoped injection in concert with Use new Request Context for each realm during implicit bootstrap #3411

  • Additionally, this enables further code cleanup in PolarisConfigurationStore
    as discussed in Refactor PolarisConfigurationStore to streamline value typing #3324 with the goal of using this interface for the backend
    configuration code, while RealmConfig becomes the corresponding frontend
    interface.

  • Fix ServiceProducers.realmConfig() to make a RealmConfigImpl directly from
    its dependencies (not from CallContext) to avoid cycles in CDI.

Checklist

  • 🛡️ Don't disclose security issues! (contact security@apache.org)
  • 🔗 Clearly explained why the changes are needed, or linked related issues: Fixes #
  • 🧪 Added/updated tests with good coverage, or manually tested (and explained how)
  • 💡 Added comments for complex logic
  • 🧾 Updated CHANGELOG.md (if needed)
  • 📚 Updated documentation in site/content/in-dev/unreleased (if needed)

@github-project-automation github-project-automation bot moved this to PRs In Progress in Basic Kanban Board Jan 10, 2026
@dimas-b dimas-b changed the title Jdbc realm config Use injected RealmConfig in JdbcMetaStoreManagerFactory Jan 10, 2026
@dimas-b
Copy link
Contributor Author

dimas-b commented Jan 10, 2026

Draft for now as this PR depends on #3411. Open for comments.

@dimas-b dimas-b requested review from singhpk234 and snazy January 14, 2026 00:54
@dimas-b dimas-b marked this pull request as ready for review January 14, 2026 00:55
* Improve code isolation by using `RealmConfig` (like most other code)
  instead of the lower-level `PolarisConfigurationStore`

* This also enabled proper CDI request-scoped injection in concert with apache#3411

* Additionally, this enables further code cleanup in `PolarisConfigurationStore`
  as discussed in apache#3324 with the goal of using this interface for the backend
  configuration code, while `RealmConfig` becomes the corresponding frontend
  interface.

* Fix `ServiceProducers.realmConfig()` to make a `RealmConfigImpl` directly from
  its dependencies (not from `CallContext`) to avoid cycles in CDI.
@dimas-b dimas-b requested a review from adutra January 14, 2026 16:45
@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jan 15, 2026
@dimas-b
Copy link
Contributor Author

dimas-b commented Jan 15, 2026

@singhpk234 : Do you have any feedback on this change?

Copy link
Member

@snazy snazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dimas-b dimas-b merged commit 276d71c into apache:main Jan 19, 2026
15 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Jan 19, 2026
@dimas-b dimas-b deleted the jdbc-realm-config branch January 19, 2026 14:39
evindj pushed a commit to evindj/polaris that referenced this pull request Jan 26, 2026
* Use injected RealmConfig in JdbcMetaStoreManagerFactory

* Improve code isolation by using `RealmConfig` (like most other code)
  instead of the lower-level `PolarisConfigurationStore`

* This also enabled proper CDI request-scoped injection in concert with apache#3411

* Additionally, this enables further code cleanup in `PolarisConfigurationStore`
  as discussed in apache#3324 with the goal of using this interface for the backend
  configuration code, while `RealmConfig` becomes the corresponding frontend
  interface.

* Fix `ServiceProducers.realmConfig()` to make a `RealmConfigImpl` directly from
  its dependencies (not from `CallContext`) to avoid cycles in CDI.
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