[jira] [Reopened] (FLINK-929) Impossible to pass double with configuration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Reopened] (FLINK-929) Impossible to pass double with configuration

Shang Yuanchun (Jira)

     [ https://issues.apache.org/jira/browse/FLINK-929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Metzger reopened FLINK-929:
----------------------------------


I did a mistake here (I should not work late in the evening).
I forgot to add the commit to the 0.5.1 release.

I'll push the fix to the master (0.6-SNAPSHOT) and add it to the 0.5.2 release.  I'm really sorry that I forgot to include it!

> Impossible to pass double with configuration
> --------------------------------------------
>
>                 Key: FLINK-929
>                 URL: https://issues.apache.org/jira/browse/FLINK-929
>             Project: Flink
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: pre-apache-0.5
>            Reporter: Jonas Traub
>            Assignee: Robert Metzger
>             Fix For: pre-apache-0.5.1
>
>
> I discovered the following by using the new Java-API:
> When calling getDouble on the configuration given to the open method, the returned value is always the default value.
> It seems like an override of getDouble is missing in the class TaskConfig.DelegatingConfiguration.
> {code:title=MyClass.java|borderStyle=solid}
> //[...]
> public void open(Configuration parameters) throws Exception
> {
>     //This seems to always return the default value
>     parameters.getDouble("myKey",0.0);
> }
> //[...]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)