lasdf1234 commented on PR #14954:
URL: https://github.com/apache/gravitino/pull/14954#issuecomment-6869231399

   Thanks for the versioned write-through alter work — the prepare → entity 
persist → commit/rollback model looks solid for #13439.
   
   ### Please change in this PR
   
   Rename the staging entry point so the name matches the side effects (it 
already writes pending versions, it is not a dry prepare):
   
   - `SecretManager.prepareSecretVersions` → **`stageSecrets`**
   - Keep **`commitSecrets`** / **`rollbackSecrets(SecretVersionChanges)`** 
as-is
   - Update javadoc, `design-docs/gravitino-entity-secrets.md`, call sites, and 
tests together
   
   ### Follow-up (new issue, assigned to you)
   
   Please track the API unification in **#14970** (separate PR after this one 
merges):
   
   1. Move catalog / schema / fileset **create** onto `stageSecrets` → 
`commitSecrets` / `rollbackSecrets(SecretVersionChanges)` (create can use 
`previousId == null`, so commit is effectively a no-op).
   2. Delete `writeSecrets(List)`, `rollbackSecrets(List)`, and 
**`SecretMaterial`** once unused.
   3. Rename `SecretMaterialsHolder` to match `SecretVersionChanges` (or inline 
it).
   4. Keep SPI (`writeSecret` / `deleteSecret` + the four version methods) and 
`deleteSecretsFromProperties` for drop.
   
   Happy to discuss naming (`stageSecrets` vs `stageSecretVersions`) if you 
prefer the longer form.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to