Github user mattf-horton commented on a diff in the pull request: https://github.com/apache/incubator-metron/pull/308#discussion_r83754190 --- Diff: metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/bolt/ParserBolt.java --- @@ -116,6 +122,9 @@ public void execute(Tuple tuple) { boolean ackTuple = !writer.handleAck(); int numWritten = 0; if(sensorParserConfig != null) { + if (configUpdatedFlag.getAndSet(false)) { + parser.configurationUpdated(getSensorParserConfig().getParserConfig()); --- End diff -- Ah. All that's needed is to fetch sensorParserConfig AFTER doing configUpdatedFlag.getAndSet(false). So right before line 118 do boolean mustUpdateConfig = configUpdatedFlag.getAndSet(false); //must check before fetching sensorParserConfig then in the current line 125 use mustUpdateConfig instead of configUpdatedFlag.getAndSet(false).
--- 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. ---