[
https://issues.apache.org/jira/browse/METRON-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16469778#comment-16469778
]
ASF GitHub Bot commented on METRON-1421:
----------------------------------------
Github user justinleet commented on the issue:
https://github.com/apache/metron/pull/970
@mmiklavc
Re: The index issue appears to be preexisting.
https://github.com/apache/metron/blob/feature/METRON-1416-upgrade-solr/metron-platform/metron-solr/src/main/java/org/apache/metron/solr/dao/SolrSearchDao.java#L231
. If you're okay with it, I think we make a another ticket against the parent
ticket and resolve it separately.
Re: the child alert's metaalerts field. That field doesn't actually do
anything and is an artifact of the denormalization process. What happens there
is that we just update the status of the metaalert, without updating
denormalized alert's metaalert links (which are unused anyway and exist because
it's more work and messy to update them on something we've already decided
isn't active).
Having said that, this points to another issue further on. Check out
https://github.com/apache/metron/pull/970/files#diff-b7359d01c3ffbed48b7fdaa2d32169e7R246.
The process of updating from inactive to active is slightly incomplete.
Say we have these three steps:
- Metaalert is updated to inactive
- (Former) child alert is updated.
- Metaalert is made active again.
The update will be missing from the metaalert. We need to update the
metaalert with the current state of any alerts (which we conveniently have
because we needed to update them all anyway!). This is a problem with both ES
and Solr (which shouldn't be surprising since that link is to the abstract DAO.
It also needs an associated test case.
> Create a SolrMetaAlertDao
> -------------------------
>
> Key: METRON-1421
> URL: https://issues.apache.org/jira/browse/METRON-1421
> Project: Metron
> Issue Type: Sub-task
> Reporter: Justin Leet
> Assignee: Justin Leet
> Priority: Major
>
> Create an implementation of the MetaAlertDao for Solr. This will involve
> implementing the various MetaAlertDao methods using the SolrJ library and
> also providing a SolrMetaAlertIntegrationTest (similar to
> ElasticsearchMetaAlertIntegrationTest).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)