Github user hmcl commented on a diff in the pull request: https://github.com/apache/storm/pull/977#discussion_r49136454 --- Diff: external/storm-solr/src/main/java/org/apache/storm/solr/bolt/SolrUpdateBolt.java --- @@ -92,9 +108,17 @@ private void ack(Tuple tuple) throws SolrServerException, IOException { if (commitStgy == null) { collector.ack(tuple); } else { - toCommitTuples.add(tuple); - commitStgy.update(); - if (commitStgy.commit()) { + boolean forceCommit = false; + if (TupleUtils.isTick(tuple)) { + LOG.debug("TICK! forcing solr client commit"); + collector.ack(tuple); + forceCommit = true; + } else { + toCommitTuples.add(tuple); + commitStgy.update(); + } + + if (forceCommit || commitStgy.commit()) { --- End diff -- @vesense Can you please follow te suggestion that I gave as the code is much cleaner.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---