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

    https://github.com/apache/metron/pull/1213#discussion_r220994410
  
    --- Diff: 
metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/topology/ParserTopologyBuilder.java
 ---
    @@ -268,29 +266,14 @@ private static ParserBolt createParserBolt( String 
zookeeperUrl,
                                                   Optional<String> 
securityProtocol,
                                                   ParserConfigurations configs,
                                                   Optional<String> 
outputTopic) {
    -
    -    Map<String, ParserComponents> parserBoltConfigs = new HashMap<>();
    +    Map<String, WriterHandler> writerConfigs = new HashMap<>();
         for( Entry<String, SensorParserConfig> entry : 
sensorTypeToParserConfig.entrySet()) {
           String sensorType = entry.getKey();
           SensorParserConfig parserConfig = entry.getValue();
    -      // create message parser
    --- End diff --
    
    This should not be done here because it can potentially cause serialization 
problems:  https://issues.apache.org/jira/browse/METRON-1793.  MessageParser 
and MessageFilter objects should be created during initialization and not when 
the container is created (and before the ParserBolt is created).  We should be 
doing this when prepare is called on the ParserBolt.


---

Reply via email to