You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "Surya00011 (via GitHub)" <gi...@apache.org> on 2025/08/21 07:30:40 UTC

[PR] [apache#8161] fix(catalog): respect ignoreIfNotExists flag in removeC… [gravitino]

Surya00011 opened a new pull request, #8235:
URL: https://github.com/apache/gravitino/pull/8235

   # What changes were proposed in this pull request?
   - Updated `removeCatalog` implementation to respect the `ignoreIfNotExists` flag.
   - If the catalog does not exist and `ignoreIfNotExists = true`, the method now exits silently.
   - If the catalog does not exist and `ignoreIfNotExists = false`, a `CatalogException` is thrown.
   - Wrapped underlying errors in `CatalogException` for consistency.
   
   # Why are the changes needed?
   - The previous implementation ignored the `ignoreIfNotExists` flag.
   - This led to unexpected exceptions even when users explicitly indicated they wanted missing catalogs to be ignored.
   - Fixing this ensures more predictable behavior and aligns with the contract of the API.
   - Fix: #8161
   
   # Does this PR introduce any user-facing change?
   - **Yes.**
   - Users who set `ignoreIfNotExists = true` will no longer see unnecessary exceptions if the catalog is missing.
   - Behavior is now consistent with expected API semantics.
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [apache#8161] fix(catalog): respect ignoreIfNotExists flag in removeC… [gravitino]

Posted by "Surya00011 (via GitHub)" <gi...@apache.org>.
Surya00011 closed pull request #8235: [apache#8161] fix(catalog): respect ignoreIfNotExists flag in removeC…
URL: https://github.com/apache/gravitino/pull/8235


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org