Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.6.3
-
None
Description
MetricConfig's getInteger will always return the default value.
The reason is, since it delegates to Java's Properties.getProperty which returns null if the type of the value is not String.
Reproduce
- Create a class MyReporter implementing MetricReporter
- Implment the open() method so that you do config.getInteger("foo", null)
- Start an ExecutionEnvironment with and give it the following Configuration object:
configuration.setString("metrics.reporters", "my"); configuration.setClass("metrics.reporter.my.class", MyReporter.class) configuration.setInteger("metrics.reporter.my.foo", 42);
- In open() the value of foo is null.