You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2016/02/26 21:45:18 UTC
[jira] [Commented] (HADOOP-12848)
Configuration.ParsedTimeDuration.unitFor(String) should do more careful
parsing
[ https://issues.apache.org/jira/browse/HADOOP-12848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15169766#comment-15169766 ]
Chris Nauroth commented on HADOOP-12848:
----------------------------------------
I like the idea of "pigs" and "hams" as standardized units of measurement for time. It actually makes sense: a whole pig is multiple hams.
> Configuration.ParsedTimeDuration.unitFor(String) should do more careful parsing
> -------------------------------------------------------------------------------
>
> Key: HADOOP-12848
> URL: https://issues.apache.org/jira/browse/HADOOP-12848
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 2.9.0
> Reporter: Daniel Templeton
> Assignee: Daniel Templeton
>
> The unit parsing code is very loosey-goosey. For example, "2 pigs" will parse as 2 seconds. "3 hams" will parse as 3 milliseconds. We might want to tighten that up a bit.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)