Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12718

StreamContext ctor should always take a SolrClientCache

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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);

       

      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 ?

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                varunthacker Varun Thacker
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m