yuqi1129 commented on code in PR #15034:
URL: https://github.com/apache/gravitino/pull/15034#discussion_r4613301748
##########
core/src/main/java/org/apache/gravitino/storage/relational/service/GlossaryTermMetaService.java:
##########
@@ -202,12 +202,14 @@ public boolean delete(NameIdentifier ident) {
try {
return transaction(
ident.namespace(),
+ true,
(mapper, metalakeId) -> {
GlossaryTermPO row = require(mapper, ident, metalakeId);
long deletedAt = Math.max(1, System.currentTimeMillis());
requireUpdated(
mapper.delete(row.getTermId(), row.getCurrentVersion(),
deletedAt), ident);
mapper.deleteSynonyms(row.getTermId(), deletedAt);
+ GlossaryTermRelService.getInstance().removeTerm(metalakeId,
row.getTermId());
return true;
});
} catch (NoSuchEntityException e) {
Review Comment:
Fixed in 231a4b9b27. The storage service now returns false only when the
locked term lookup finds no row in a live metalake. Parent lookup and fence
failures propagate through JDBCBackend. RelationalEntityStore.delete still maps
a missing entity to false for its callers. The new backend regression failed on
the previous head and passed after the change; all 28 H2 glossary definition
and relation cases passed.
--
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]