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

    https://github.com/apache/storm/pull/1230#discussion_r57991197
  
    --- Diff: 
external/storm-mongodb/src/main/java/org/apache/storm/mongodb/bolt/MongoInsertBolt.java
 ---
    @@ -99,6 +107,29 @@ public MongoInsertBolt withOrdered(boolean ordered) {
             return this;
         }
     
    +    public MongoInsertBolt withFlushIntervalSecs(int flushIntervalSecs) {
    +        this.flushIntervalSecs = flushIntervalSecs;
    +        return this;
    +    }
    +
    +    @Override
    +    public Map<String, Object> getComponentConfiguration() {
    +        Map<String, Object> conf = super.getComponentConfiguration();
    +        if (conf == null) {
    +            conf = new Config();
    +        }
    +
    +        if (conf.containsKey(Config.TOPOLOGY_MESSAGE_TIMEOUT_SECS) && 
flushIntervalSecs == 0) {
    --- End diff --
    
    Turned out it simply doesn't work, since topology config is not propagated 
to here.
    Please refer #893 for more details.
    We just have to have default value of flushIntervalSecs, which value should 
make sense with MongoDB.
    (For me I set 1 sec as a default value of HBaseBolt. Please refer #1251.)


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to