Github user HeartSaVioR commented on a diff in the pull request:
https://github.com/apache/storm/pull/807#discussion_r42917683
--- Diff:
storm-core/src/jvm/backtype/storm/validation/ConfigValidation.java ---
@@ -425,6 +451,26 @@ public static void validateField(String name, boolean
includeZero, Object o) {
}
}
+ public static class MetricRegistryValidator extends Validator {
+
+ @Override
+ public void validateField(String name, Object o) throws
IllegalAccessException {
+ if(o == null) {
+ return;
+ }
+ SimpleTypeValidator.validateField(name, Map.class, o);
+ if(!((Map) o).containsKey("class") ) {
+ throw new IllegalAccessException("Field " + name + " must
have map entry with key: class");
+ }
+ if(!((Map) o).containsKey("parallelism.hint") ) {
+ throw new IllegalAccessException("Field " + name + " must
have map entry with key: class");
--- End diff --
@jerrypeng It should be "key: parallelism.hint".
---
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.
---