Varun Thacker created SOLR-12718:
------------------------------------

             Summary: StreamContext ctor should always take a SolrClientCache
                 Key: SOLR-12718
                 URL: https://issues.apache.org/jira/browse/SOLR-12718
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Varun Thacker


{code:java}
StreamExpression expression = StreamExpressionParser.parse(expr);
TupleStream stream = new CloudSolrStream(expression, factory);

SolrClientCache solrClientCache = new SolrClientCache();
StreamContext streamContext = new StreamContext();
streamContext.setSolrClientCache(solrClientCache);

stream.setStreamContext(streamContext);
List<Tuple> tuples = getTuples(stream);{code}
 

If we don't call {{streamContext.setSolrClientCache}} we will get an NPE. Seems 
like we should always have the user take solrClientCache in StreamContext's 
ctor ?

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to