Github user merrimanr commented on a diff in the pull request:
https://github.com/apache/incubator-metron/pull/308#discussion_r83984954
--- Diff:
metron-platform/metron-parsers/src/main/java/org/apache/metron/parsers/bolt/ParserBolt.java
---
@@ -181,7 +185,8 @@ public void declareOutputFields(OutputFieldsDeclarer
declarer) {
@Override
public void updateConfig(String path, byte[] data) throws IOException {
super.updateConfig(path, data);
- if (path.startsWith(ConfigurationType.PARSER.getZookeeperRoot() + "/"
+ getSensorType())) {
+ String pathWithoutTrailingSlash = path.replaceAll("/+$", "");
+ if
(pathWithoutTrailingSlash.equals(ConfigurationType.PARSER.getZookeeperRoot() +
"/" + getSensorType())) {
--- End diff --
I'm sorry I don't follow. ConfigurationType.PARSER.getZookeeperRoot() is
constant and sensorType is a leaf node in Zookeeper. Maybe an example will
help.
---
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.
---