Description
The module sentry-provider-db included all the code for sentry server and sentry client. To pull the client and server dependencies outside of sentry-provider-db, a new module, sentry-service was created with submodules sentry-service-server, sentry-service-api (see SENTRY-2206) and sentry-service-client.
The majority of this patch moves classes from sentry-provider-db to sentry-service-server (Thrift APIs, web server, model classes and SQL) and sentry-service-client (SentryServiceClientFactory) and updates dependencies (Sentry HDFS service depends on sentry-service-server and Sentry Provider DB depends on sentry-service-client) across the codebase accordingly.
Also, several test classes needed to be updated to declare their use of SentryServiceIntegrationBase:
TestAuditLogForSentryGenericService.java
TestSentryGenericServiceClient
TestAuthorizingDDLAuditLogWithKerberos
TestSentryPolicyServiceClient
TestSentryServiceClientPool
TestSentryServiceWithInvalidMsgSize
TestSentryWebServerWithKerberos
Attachments
Attachments
Issue Links
- relates to
-
SENTRY-2206 Refactor out sentry api from sentry-provider-db to own module
- Resolved
-
SENTRY-2207 Refactor out Sentry CLI from sentry-provider-db into own module
- Resolved
-
SENTRY-1205 Refactor the code for sentry-provider-db and create sentry-service module
- Resolved
- links to