[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lei (Eddy) Xu updated HADOOP-13380: --- Resolution: Fixed Fix Version/s: 3.0.0-alpha2 2.9.0 Status: Resolved (was: Patch Available) Thanks for the work, [~yufeigu]. +1. Committed to trunk and branch-2. > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > Fix For: 2.9.0, 3.0.0-alpha2 > > Attachments: HADOOP-13380.001.patch, HADOOP-13380.002.patch > > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yufei Gu updated HADOOP-13380: -- Attachment: HADOOP-13380.002.patch > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > Attachments: HADOOP-13380.001.patch, HADOOP-13380.002.patch > > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yufei Gu updated HADOOP-13380: -- Attachment: (was: HADOOP-13380.002.patch) > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > Attachments: HADOOP-13380.001.patch > > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yufei Gu updated HADOOP-13380: -- Attachment: HADOOP-13380.002.patch Thanks [~eddyxu] for the review. I uploaded the patch 002 for your comment. > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > Attachments: HADOOP-13380.001.patch, HADOOP-13380.002.patch > > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yufei Gu updated HADOOP-13380: -- Status: Patch Available (was: Open) > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > Attachments: HADOOP-13380.001.patch > > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yufei Gu updated HADOOP-13380: -- Attachment: HADOOP-13380.001.patch > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > Attachments: HADOOP-13380.001.patch > > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Wang updated HADOOP-13380: - Target Version/s: 3.0.0-alpha2 (was: 3.0.0-alpha1) > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-13380) TestBasicDiskValidator should not write data to /tmp
[ https://issues.apache.org/jira/browse/HADOOP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lei (Eddy) Xu updated HADOOP-13380: --- Summary: TestBasicDiskValidator should not write data to /tmp (was: TestBasicDiskValidator) > TestBasicDiskValidator should not write data to /tmp > > > Key: HADOOP-13380 > URL: https://issues.apache.org/jira/browse/HADOOP-13380 > Project: Hadoop Common > Issue Type: Improvement >Affects Versions: 2.9.0 >Reporter: Lei (Eddy) Xu >Assignee: Yufei Gu >Priority: Minor > > In {{TestBasicDiskValidator}}, the following code is confusing > {code} >File localDir = File.createTempFile("test", "tmp"); > try { >if (isDir) { >// reuse the file path generated by File#createTempFile to create a dir > localDir.delete(); >localDir.mkdir(); > } > {code} > Btw, as suggested in https://wiki.apache.org/hadoop/CodeReviewChecklist, unit > test should not write data into {{/tmp}}: > bq. * unit tests do not write any temporary files to /tmp (instead, the tests > should write to the location specified by the test.build.data system property) > Finally, should use {{Files}} in these file creation / deletion, so that any > error can be thrown as {{IOE}}. > -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org