Issue Details (XML | Word | Printable)

Key: HADOOP-4632
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Amar Kamat
Reporter: Amareshwari Sriramadasu
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

TestJobHistoryVersion should not create directory in current dir.

Created: 11/Nov/08 10:12 AM   Updated: 08/Jul/09 04:53 PM
Return to search
Component/s: None
Affects Version/s: 0.19.0
Fix Version/s: 0.19.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-4632-v1.1.patch 2008-11-12 12:38 PM Amar Kamat 0.7 kB
Text File Licensed for inclusion in ASF works HADOOP-4632-v1.2.patch 2008-12-02 09:24 AM Amar Kamat 2 kB
Text File Licensed for inclusion in ASF works HADOOP-4632-v1.patch 2008-11-12 10:11 AM Amar Kamat 0.7 kB

Hadoop Flags: Reviewed
Resolution Date: 04/Dec/08 06:07 AM


 Description  « Hide
TestJobHistoryVersion creates a directory, test-history-version, in the current dierctory. It should be created in test.build.data directory.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Amar Kamat added a comment - 12/Nov/08 10:11 AM
Attaching a patch the fixes the issue. Manually tested the patch.

Amareshwari Sriramadasu added a comment - 12/Nov/08 11:42 AM
The default TEST_DIR should not be /test-history-version, it can be inside /tmp.

Amar Kamat added a comment - 12/Nov/08 12:38 PM
Attaching a new patch incorporating Amareshwari's comments.

Amareshwari Sriramadasu added a comment - 13/Nov/08 03:27 AM
+1

Hadoop QA added a comment - 13/Nov/08 08:05 AM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12393786/HADOOP-4632-v1.1.patch
against trunk revision 713612.

+1 @author. The patch does not contain any @author tags.

+1 tests included. The patch appears to include 4 new or modified tests.

+1 javadoc. The javadoc tool did not generate any warning messages.

+1 javac. The applied patch does not increase the total number of javac compiler warnings.

+1 findbugs. The patch does not introduce any new Findbugs warnings.

+1 Eclipse classpath. The patch retains Eclipse classpath integrity.

+1 core tests. The patch passed core unit tests.

+1 contrib tests. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3582/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3582/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3582/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3582/console

This message is automatically generated.


Chris Douglas added a comment - 25/Nov/08 09:59 AM
test.build.data is shared by all the other unit tests; it shouldn't be the base for scratchwork.
new Path(System.getProperty("test.build.data", "/tmp"), "testname")

Is the normal idiom. The test directory should also be deleted when the tests have completed.


Amar Kamat added a comment - 02/Dec/08 09:24 AM
Attaching a new patch with the changes.

Amareshwari Sriramadasu added a comment - 04/Dec/08 04:55 AM
+1 Patch looks good.

Chris Douglas added a comment - 04/Dec/08 06:07 AM
I just committed this. Thanks, Amar

Hudson added a comment - 06/Dec/08 02:02 PM