This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 605831c8 nit: rename a few remaining occurrences of "RealmId" (#962)
605831c8 is described below
commit 605831c80e97b6b97a7184a7b2e4ef7dccf42ce8
Author: Alexandre Dutra <[email protected]>
AuthorDate: Fri Feb 7 20:13:58 2025 +0100
nit: rename a few remaining occurrences of "RealmId" (#962)
---
.../polaris/service/catalog/io/FileIOFactoryTest.java | 2 +-
.../java/org/apache/polaris/service/TestServices.java | 16 ++++++++--------
.../unreleased/configuring-polaris-for-production.md | 2 +-
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git
a/service/common/src/test/java/org/apache/polaris/service/catalog/io/FileIOFactoryTest.java
b/service/common/src/test/java/org/apache/polaris/service/catalog/io/FileIOFactoryTest.java
index 326e6a1e..8aa0522f 100644
---
a/service/common/src/test/java/org/apache/polaris/service/catalog/io/FileIOFactoryTest.java
+++
b/service/common/src/test/java/org/apache/polaris/service/catalog/io/FileIOFactoryTest.java
@@ -116,7 +116,7 @@ public class FileIOFactoryTest {
testServices =
TestServices.builder()
.config(Map.of("ALLOW_SPECIFYING_FILE_IO_IMPL", true))
- .realmId(realmContext)
+ .realmContext(realmContext)
.stsClient(stsClient)
.fileIOFactorySupplier(fileIOFactorySupplier)
.build();
diff --git
a/service/common/src/testFixtures/java/org/apache/polaris/service/TestServices.java
b/service/common/src/testFixtures/java/org/apache/polaris/service/TestServices.java
index a66f55b9..1a7da17a 100644
---
a/service/common/src/testFixtures/java/org/apache/polaris/service/TestServices.java
+++
b/service/common/src/testFixtures/java/org/apache/polaris/service/TestServices.java
@@ -84,15 +84,15 @@ public record TestServices(
}
public static class Builder {
- private RealmContext realm = TEST_REALM;
+ private RealmContext realmContext = TEST_REALM;
private Map<String, Object> config = Map.of();
private StsClient stsClient = Mockito.mock(StsClient.class);
private FileIOFactorySupplier fileIOFactorySupplier =
MeasuredFileIOFactory::new;
private Builder() {}
- public Builder realmId(RealmContext realmId) {
- this.realm = realmId;
+ public Builder realmContext(RealmContext realmContext) {
+ this.realmContext = realmContext;
return this;
}
@@ -132,11 +132,11 @@ public record TestServices(
new RealmEntityManagerFactory(metaStoreManagerFactory,
polarisDiagnostics) {};
PolarisEntityManager entityManager =
- realmEntityManagerFactory.getOrCreateEntityManager(realm);
+ realmEntityManagerFactory.getOrCreateEntityManager(realmContext);
PolarisMetaStoreManager metaStoreManager =
- metaStoreManagerFactory.getOrCreateMetaStoreManager(realm);
+ metaStoreManagerFactory.getOrCreateMetaStoreManager(realmContext);
PolarisMetaStoreSession metaStoreSession =
- metaStoreManagerFactory.getOrCreateSessionSupplier(realm).get();
+
metaStoreManagerFactory.getOrCreateSessionSupplier(realmContext).get();
FileIOFactory fileIOFactory =
fileIOFactorySupplier.apply(
@@ -156,7 +156,7 @@ public record TestServices(
IcebergRestCatalogApiService service =
new IcebergCatalogAdapter(
- realm,
+ realmContext,
callContextFactory,
entityManager,
metaStoreManager,
@@ -219,7 +219,7 @@ public record TestServices(
polarisDiagnostics,
realmEntityManagerFactory,
metaStoreManagerFactory,
- realm,
+ realmContext,
securityContext,
fileIOFactory,
taskExecutor);
diff --git
a/site/content/in-dev/unreleased/configuring-polaris-for-production.md
b/site/content/in-dev/unreleased/configuring-polaris-for-production.md
index 4b243e86..fdc6bcc2 100644
--- a/site/content/in-dev/unreleased/configuring-polaris-for-production.md
+++ b/site/content/in-dev/unreleased/configuring-polaris-for-production.md
@@ -92,7 +92,7 @@ polaris.authentication.token-broker.max-token-generation=PT1H
Typically, in Kubernetes, you would define the keys as a `Secret` and mount
them as files in the
container.
-### Realm Id Resolver
+### Realm Context Resolver
By default, Polaris resolves realms based on incoming request headers. You can
configure the realm
context resolver by setting the following properties in
`application.properties`: