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

StreamContext ctor should always take a SolrClientCache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    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

              Unassigned Unassigned
              varun 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