request.setProtocol_version(ThriftConstants.TSENTRY_SERVICE_VERSION_CURRENT);
request.setRequestorUserName(requestorUserName);
request.setRoleName(roleName);
try {
TDropSentryRoleResponse response = client.drop_sentry_role(request);
Status status = Status.fromCode(response.getStatus().getValue());
if (ifExists && status == Status.NO_SUCH_OBJECT) {
return;
}
Status.throwIfNotOk(response.getStatus());
} catch (TException e) {