[ 
https://issues.apache.org/jira/browse/STORM-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090968#comment-15090968
 ] 

ASF GitHub Bot commented on STORM-1419:
---------------------------------------

Github user vesense commented on a diff in the pull request:

    https://github.com/apache/storm/pull/977#discussion_r49274109
  
    --- Diff: 
external/storm-solr/src/main/java/org/apache/storm/solr/bolt/SolrUpdateBolt.java
 ---
    @@ -59,16 +63,29 @@ public SolrUpdateBolt(SolrConfig solrConfig, SolrMapper 
solrMapper, SolrCommitSt
             this.solrConfig = solrConfig;
             this.solrMapper = solrMapper;
             this.commitStgy = commitStgy;
    -        logger.debug("Created {} with the following configuration: " +
    +        LOG.debug("Created {} with the following configuration: " +
                         "[SolrConfig = {}], [SolrMapper = {}], [CommitStgy = 
{}]",
                         this.getClass().getSimpleName(), solrConfig, 
solrMapper, commitStgy);
         }
     
    +    @Override
         public void prepare(Map stormConf, TopologyContext context, 
OutputCollector collector) {
             this.collector = collector;
             this.solrClient = new 
CloudSolrClient(solrConfig.getZkHostString());
             this.toCommitTuples = new ArrayList<>(capacity());
    +        this.tickTupleInterval = solrConfig.getTickTupleInterval();
    --- End diff --
    
    Done.


> Solr bolt should handle tick tuples
> -----------------------------------
>
>                 Key: STORM-1419
>                 URL: https://issues.apache.org/jira/browse/STORM-1419
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-solr
>            Reporter: Xin Wang
>            Assignee: Xin Wang
>
> Solr bolt should handle tick tuples.
> Forcing solr client commit when bolt received tick tuple.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to