Hao Chen created EAGLE-49:
-----------------------------

             Summary: Handle the bad-format message in smarter way instead of 
throwing exception always
                 Key: EAGLE-49
                 URL: https://issues.apache.org/jira/browse/EAGLE-49
             Project: Eagle
          Issue Type: Improvement
            Reporter: Hao Chen
            Assignee: Hao Chen


Currently the solution is throw the message once the coming-in message's 
structure don't match with pre-defined schema which is not very good:
https://github.com/apache/incubator-eagle/blob/master/eagle-core/eagle-alert/eagle-alert-process/src/main/java/org/apache/eagle/alert/siddhi/SiddhiPolicyEvaluator.java#L189-L195

We should provide a smarter way to fix the bad message if possible like 
[1] Fill in default value for missing fields.
[2] Remove unaccepted fileds and log as ignored warning.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to