Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/metron/pull/1190#discussion_r216735006
  
    --- Diff: 
metron-platform/metron-indexing/src/main/java/org/apache/metron/indexing/dao/metaalert/lucene/AbstractLuceneMetaAlertUpdateDao.java
 ---
    @@ -170,21 +169,51 @@ protected Document 
buildCreateDocument(Iterable<Document> alerts, List<String> g
         return updates;
       }
     
    +  /**
    +   * Adds alerts to a metaalert, based on a list of GetRequests provided 
for retrieval.
    +   * @param metaAlertGuid The GUID of the metaalert to be given new 
children.
    +   * @param alertRequests GetRequests for the appropriate alerts to add.
    +   * @return The updated metaalert with alerts added.
    +   */
    +  @Override
    +  public Document addAlertsToMetaAlert(String metaAlertGuid, 
List<GetRequest> alertRequests)
    +          throws IOException {
    +
    +    Document metaAlert = retrieveLatestDao
    --- End diff --
    
    Don't we need a null check here?  What happens if there is no metaAlert?


---

Reply via email to