[ 
https://issues.apache.org/jira/browse/FLINK-34397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872775#comment-17872775
 ] 

Matthias Pohl commented on FLINK-34397:
---------------------------------------

I agree with [~roman]: Currently, it's inconsistent behavior because we're 
allowing negative Duration values if we set these kind of configuration 
parameters explicitly in code as far as I can see.

> Resource wait timeout can't be disabled
> ---------------------------------------
>
>                 Key: FLINK-34397
>                 URL: https://issues.apache.org/jira/browse/FLINK-34397
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Configuration
>    Affects Versions: 1.17.2
>            Reporter: Chesnay Schepler
>            Assignee: Chesnay Schepler
>            Priority: Major
>             Fix For: 2.0.0
>
>
> The documentation for {{jobmanager.adaptive-scheduler.resource-wait-timeout}} 
> states that:
> ??Setting a negative duration will disable the resource timeout: The 
> JobManager will wait indefinitely for resources to appear.??
> However, we don't support parsing negative durations.
> {code}
> Could not parse value '-1 s' for key 
> 'jobmanager.adaptive-scheduler.resource-wait-timeout'.
> Caused by: java.lang.NumberFormatException: text does not start with a number
>       at org.apache.flink.util.TimeUtils.parseDuration(TimeUtils.java:80)
>       at 
> org.apache.flink.configuration.ConfigurationUtils.convertToDuration(ConfigurationUtils.java:399)
>       at 
> org.apache.flink.configuration.ConfigurationUtils.convertValue(ConfigurationUtils.java:331)
>       at 
> org.apache.flink.configuration.Configuration.lambda$getOptional$3(Configuration.java:729)
>       at java.base/java.util.Optional.map(Optional.java:260)
>       at 
> org.apache.flink.configuration.Configuration.getOptional(Configuration.java:729)
>       ... 2 more
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to