pinal-shah commented on code in PR #778:
URL: https://github.com/apache/atlas/pull/778#discussion_r4226717706
##########
dev-support/scripts/e2e-unknown-typename-notification.sh:
##########
@@ -0,0 +1,152 @@
+#!/usr/bin/env bash
Review Comment:
Can you please remove this script of not needed?
##########
webapp/src/main/java/org/apache/atlas/notification/SerialEntityProcessor.java:
##########
@@ -449,6 +454,26 @@ public TopicPartitionOffsetResult handleMessage(Ticket
ticket) {
LOG.error("handleMessage(): failed to convert V1 message to
V2", message.getType().name());
}
+ // Reject unknown entity type names before preprocessing or the
retry loop.
+ // Preprocess walks the payload and can touch the type registry;
an unknown
+ // type is permanent and must not open that work or a graph
transaction.
+ try {
+ validateEntityTypeNames(message);
Review Comment:
From my perspective, this validation shouldn't be necessary, as preprocess
will ultimately handle it.
Also, if messages coming from the hook have an invalid type, it's likely
that multiple messages share the same invalid typeName. In such cases, we
should suggest adding that typeName to the ignore pattern rather than treating
each message individually.
--
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]