public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetEventId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventId' is unset! Struct:" + toString()); } if (!isSetEventTime()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventTime' is unset! Struct:" + toString()); } if (!isSetEventType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventType' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetEventId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventId' is unset! Struct:" + toString()); } if (!isSetEventTime()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventTime' is unset! Struct:" + toString()); } if (!isSetEventType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventType' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetEventId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventId' is unset! Struct:" + toString()); } if (!isSetEventTime()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventTime' is unset! Struct:" + toString()); } if (!isSetEventType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'eventType' is unset! Struct:" + toString()); } if (!isSetMessage()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString()); } // check for sub-struct validity }
private void dropSentryDbPrivileges(String dbName, NotificationEvent event) { try { TSentryAuthorizable authorizable = new TSentryAuthorizable(authServerName); authorizable.setDb(dbName); sentryStore.dropPrivilege(authorizable, getPermUpdatableOnDrop(authorizable)); } catch (SentryNoSuchObjectException e) { LOGGER.debug("Drop Sentry privilege ignored as there are no privileges on the database: {}", dbName); } catch (Exception e) { LOGGER.error("Could not process Drop database event." + "Event: " + event.toString(), e); } }
private void dropSentryTablePrivileges(String dbName, String tableName, NotificationEvent event) { try { TSentryAuthorizable authorizable = new TSentryAuthorizable(authServerName); authorizable.setDb(dbName); authorizable.setTable(tableName); sentryStore.dropPrivilege(authorizable, getPermUpdatableOnDrop(authorizable)); } catch (SentryNoSuchObjectException e) { LOGGER.debug("Drop Sentry privilege ignored as there are no privileges on the table: {}.{}", dbName, tableName); } catch (Exception e) { LOGGER.error("Could not process Drop table event. Event: " + event.toString(), e); } }
+ " {}.{}", oldDbName, oldTableName); } catch (Exception e) { LOGGER.info("Could not process Alter table event. Event: {}", event.toString(), e); return false;