Github user nickwallen commented on a diff in the pull request:
https://github.com/apache/metron/pull/811#discussion_r146715818
--- Diff:
metron-platform/metron-elasticsearch/src/main/java/org/apache/metron/elasticsearch/dao/ElasticsearchMetaAlertDao.java
---
@@ -295,19 +341,199 @@ protected Document
buildCreateDocument(MultiGetResponse multiGetResponse, List<S
/**
* Process an update to a meta alert itself.
* @param update The update Document to be applied
- * @param index The optional index to update to
* @throws IOException If there's a problem running the update
*/
- protected void handleMetaUpdate(Document update, Optional<String> index)
throws IOException {
- // We have an update to a meta alert itself
- // If we've updated the alerts field (i.e add/remove), recalculate
meta alert scores.
+ protected void handleMetaUpdate(Document update) throws IOException {
--- End diff --
If I have a metaalert with a large number of alerts (say 525 in this
example), then I attempt to add 1 or 2 alerts to that metaalert, the REST API
responds back with a 500 error.
I don't see any error messages in the logs. I assume that error is coming
from somewhere in here.
The UI itself never reports an error or acknowledges. Of course that is a
separate problem that we should fix in a separate PR.

But I do find that the metaalert was actually updated, as the number of
alerts increased (from 527 to 529 here).

---