mirror of
https://github.com/apache/druid.git
synced 2025-02-09 03:24:55 +00:00
Changes: - Handle exceptions in the API and map them to a `Response` object with the appropriate error code. - Replace `AuthorizationUtils.filterAuthorizedResources()` with `DatasourceResourceFilter`. The endpoint is annotated consistent with other usages. - Update `DatasourceResourceFilter` to remove the lambda and update javadocs. The usages information is self-evident with an IDE. - Adjust the invalid interval exception message. - Break up the large unit test `testGetUnusedSegmentsInDataSource()` into smaller unit tests for each test case. Also, validate the error codes.