mmiklavc commented on a change in pull request #1367: METRON-2022: Metron rest
creates large number of connections to ZK which causes subsequent connection to
zk fail
URL: https://github.com/apache/metron/pull/1367#discussion_r269693518
##########
File path:
metron-platform/metron-solr/src/main/java/org/apache/metron/solr/dao/SolrMetaAlertUpdateDao.java
##########
@@ -59,12 +59,13 @@
* @param retrieveLatestDao A RetrieveLatestDao for getting the current
state of items being
* mutated.
*/
- public SolrMetaAlertUpdateDao(SolrDao solrDao,
+ public SolrMetaAlertUpdateDao(SolrClient solrClient,
+ SolrDao solrDao,
SolrMetaAlertSearchDao metaAlertSearchDao,
SolrMetaAlertRetrieveLatestDao retrieveLatestDao,
MetaAlertConfig config) {
super(solrDao, retrieveLatestDao, config);
- this.solrClient = solrDao.getSolrClient(solrDao.getZkHosts());
+ this.solrClient = solrClient;
Review comment:
Thumbs up
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services