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/20 07:54:39 UTC

[PR] [#8161] fix(catalog): respect ignoreIfNotExists flag in removeCatalog [gravitino]

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

   ### What changes were proposed in this pull request?
   
   - Updated `removeCatalog` implementation to respect the `ignoreIfNotExists` flag.
   - If the catalog does not exist and `ignoreIfNotExists` is true, the method now exits silently.
   - If the catalog does not exist and `ignoreIfNotExists` is 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] [#8161] fix(catalog): respect ignoreIfNotExists flag in removeCatalog [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on PR #8211:
URL: https://github.com/apache/gravitino/pull/8211#issuecomment-3204735090

   I'm fairly certain Spotless will fail because it appears you've changed a lot of whitespace. Did you run Spotless on the code before making the PR?


-- 
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] [#8161] fix(catalog): respect ignoreIfNotExists flag in removeCatalog [gravitino]

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


-- 
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] [#8161] fix(catalog): respect ignoreIfNotExists flag in removeCatalog [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on PR #8211:
URL: https://github.com/apache/gravitino/pull/8211#issuecomment-3204770623

   Yes, the Spotless check failed. You'll need to run `./gradlew :flink-connector:flink:spotlessApply` to correctly format your changes and then commit those changes.


-- 
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