justinmclean opened a new issue, #9122:
URL: https://github.com/apache/gravitino/issues/9122
### What would you like to be improved?
Added validate to MetadataObjectStatisticsOperations.java dropStatistics
method to throw a clear error when the caller supplies a null or empty
statistics list, preventing a NullPointerExceptions.
Adding a few lines to the existing test shows the issue:
```
private void testDropStatistics(SupportsStatistics supportsStatistics,
String path)
throws JsonProcessingException {
Assertions.assertThrows(
IllegalArgumentException.class, () ->
supportsStatistics.dropStatistics(null));
Assertions.assertThrows(
IllegalArgumentException.class, () ->
supportsStatistics.dropStatistics(Collections.emptyList()));
```
### 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]