@@ -82,7 +82,9 @@ public synchronized Map<String, PolarisMetaStoreManager.PrincipalSecretsResult>
8282 initializeForRealm (realmContext );
8383 PolarisMetaStoreManager .PrincipalSecretsResult secretsResult =
8484 bootstrapServiceAndCreatePolarisPrincipalForRealm (
85- realmContext , metaStoreManagerMap .get (realmContext .getRealmIdentifier ()), overwrite );
85+ realmContext ,
86+ metaStoreManagerMap .get (realmContext .getRealmIdentifier ()),
87+ overwrite );
8688 results .put (realmContext .getRealmIdentifier (), secretsResult );
8789 }
8890 }
@@ -143,9 +145,7 @@ public void setStorageIntegrationProvider(PolarisStorageIntegrationProvider stor
143145 */
144146 private PolarisMetaStoreManager .PrincipalSecretsResult
145147 bootstrapServiceAndCreatePolarisPrincipalForRealm (
146- RealmContext realmContext ,
147- PolarisMetaStoreManager metaStoreManager ,
148- boolean overwrite ) {
148+ RealmContext realmContext , PolarisMetaStoreManager metaStoreManager , boolean overwrite ) {
149149 // While bootstrapping we need to act as a fake privileged context since the real
150150 // CallContext hasn't even been resolved yet.
151151 PolarisCallContext polarisContext =
@@ -162,12 +162,11 @@ public void setStorageIntegrationProvider(PolarisStorageIntegrationProvider stor
162162 PolarisEntitySubType .NULL_SUBTYPE ,
163163 PolarisEntityConstants .getRootPrincipalName ());
164164 if (preliminaryRootPrincipalLookup .isSuccess ()) {
165- String overrideMessage = "It appears this metastore manager has already been bootstrapped." +
166- " To continue bootstrapping and purge any existing Polaris entities from the metastore manager, please" +
167- " re-run this command with the flag `--overwrite`." ;
168- logger .error (
169- "\n \n {} \n \n " ,
170- overrideMessage );
165+ String overrideMessage =
166+ "It appears this metastore manager has already been bootstrapped."
167+ + " To continue bootstrapping and purge any existing Polaris entities from the metastore manager, please"
168+ + " re-run this command with the flag `--overwrite`." ;
169+ logger .error ("\n \n {} \n \n " , overrideMessage );
171170 throw new IllegalArgumentException (overrideMessage );
172171 }
173172 }
0 commit comments