You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by GitBox <gi...@apache.org> on 2019/07/31 20:06:20 UTC

[GitHub] [metron] ottobackwards commented on a change in pull request #1475: METRON-2197 Add debugging info output for Solr queries

ottobackwards commented on a change in pull request #1475: METRON-2197 Add debugging info output for Solr queries
URL: https://github.com/apache/metron/pull/1475#discussion_r309407506
 
 

 ##########
 File path: metron-platform/metron-solr/metron-solr-common/src/main/java/org/apache/metron/solr/dao/SolrSearchDao.java
 ##########
 @@ -91,29 +106,28 @@ public SearchResponse search(SearchRequest searchRequest, String fieldList)
       throw new InvalidSearchException(
           "Search result size must be less than " + accessConfig.getMaxSearchResults());
     }
-    try {
-      SolrQuery query = buildSearchRequest(searchRequest, fieldList);
-      QueryResponse response = client.query(query);
-      return buildSearchResponse(searchRequest, response);
-    } catch (SolrException | IOException | SolrServerException e) {
-      String msg = e.getMessage();
-      LOG.error(msg, e);
-      throw new InvalidSearchException(msg, e);
+  }
+
 
 Review comment:
   The only thing that comes to mind with this, is if we have multiple people/ui/api's  doing queries at the same time when we are in a 'state' or something, it is going to be a mess.  I don't know what context you can add though.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services