justinmclean opened a new issue, #9079:
URL: https://github.com/apache/gravitino/issues/9079

   ### What would you like to be improved?
   
   Validate the Hudi catalog backend configuration and throw an 
IllegalArgumentException when the backend property is missing instead of 
triggering a NullPointerException.
   
   Here's a unit test to help:
   ```
     @Test
     public void testLoadHudiCatalogBackendMissingProperty() {
       IllegalArgumentException exception =
           Assertions.assertThrows(
               IllegalArgumentException.class, () -> 
CatalogUtils.loadHudiCatalogBackend(ImmutableMap.of()));
       Assertions.assertTrue(
           exception.getMessage().contains("Property " + CATALOG_BACKEND + " 
must not be null or empty"));
     }
   ```
   
   ### How should we improve?
   
   see above


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