[ https://issues.apache.org/jira/browse/HADOOP-14902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hanisha Koneru updated HADOOP-14902: ------------------------------------ Attachment: HADOOP-14902.001.patch Attached a patch which would attempt to _close_ the OutputStream and add the close time to metrics only if the _close_ is successful. > LoadGenerator#genFile write close timing is incorrectly calculated > ------------------------------------------------------------------ > > Key: HADOOP-14902 > URL: https://issues.apache.org/jira/browse/HADOOP-14902 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 2.4.0 > Reporter: Jason Lowe > Assignee: Hanisha Koneru > Attachments: HADOOP-14902.001.patch > > > LoadGenerator#genFile's write close timing code looks like the following: > {code} > startTime = Time.now(); > executionTime[WRITE_CLOSE] += (Time.now() - startTime); > {code} > That code will generate a zero (or near zero) write close timing since it > isn't actually closing the file in-between timestamp lookups. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org