Issue Details (XML | Word | Printable)

Key: HADOOP-4395
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Tsz Wo (Nicholas), SZE
Reporter: Tsz Wo (Nicholas), SZE
Votes: 0
Watchers: 1
Operations

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

Reloading FSImage and FSEditLog may erase user and group information

Created: 11/Oct/08 12:52 AM   Updated: 08/Jul/09 04:43 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.18.2

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 4395_20081010.patch 2008-10-11 01:27 AM Tsz Wo (Nicholas), SZE 1 kB
Text File Licensed for inclusion in ASF works 4395_20081011.patch 2008-10-11 04:22 PM Tsz Wo (Nicholas), SZE 5 kB
Text File Licensed for inclusion in ASF works 4395_20081011_0.18.patch 2008-10-13 06:08 PM Tsz Wo (Nicholas), SZE 5 kB

Hadoop Flags: Reviewed
Resolution Date: 13/Oct/08 06:15 PM


 Description  « Hide
The bug can be reproduced as following:
bash-3.2$ ./bin/hadoop fs -lsr                 
-rw-r--r--   3 tsz supergroup       1366 2008-10-10 17:52 /user/tsz/a.txt
-rw-r--r--   3 tsz supergroup       1366 2008-10-10 17:52 /user/tsz/b.txt
bash-3.2$ ./bin/hadoop fs -chown sze a.txt
bash-3.2$ ./bin/hadoop fs -lsr
-rw-r--r--   3 sze supergroup       1366 2008-10-10 17:52 /user/tsz/a.txt
-rw-r--r--   3 tsz supergroup       1366 2008-10-10 17:52 /user/tsz/b.txt

Then, restart cluster ...

bash-3.2$ ./bin/hadoop fs -lsr
-rw-r--r--   3 sze                  1366 2008-10-10 17:52 /user/tsz/a.txt
-rw-r--r--   3 tsz supergroup       1366 2008-10-10 17:52 /user/tsz/b.txt

The group information for a.txt is missing.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tsz Wo (Nicholas), SZE added a comment - 11/Oct/08 01:11 AM
HADOOP-3364 changes FSImage and FSEditLog loading. The OP_SET_OWNER command is misinterpreted.

Tsz Wo (Nicholas), SZE added a comment - 11/Oct/08 01:27 AM
4395_20081010.patch: fix the problem. see whether I could add a unit test.

Tsz Wo (Nicholas), SZE added a comment - 11/Oct/08 02:17 AM
Tested 4395_20081010.patch manually. It fixed the problem. Submitting ...

Hadoop QA added a comment - 11/Oct/08 11:47 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12391924/4395_20081010.patch
against trunk revision 703609.

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

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+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 failed core unit tests.

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

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

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 11/Oct/08 04:22 PM - edited
4395_20081011.patch: updated a test.

Hadoop QA added a comment - 11/Oct/08 07:46 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12391936/4395_20081011.patch
against trunk revision 703609.

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

+1 tests included. The patch appears to include 3 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 failed core unit tests.

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

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

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 12/Oct/08 02:58 AM
The failed core test, TestJobQueueInformation, is not related to this issue. See HADOOP-4378.

Chris Douglas added a comment - 13/Oct/08 12:17 AM
+1 Patch looks good

Tsz Wo (Nicholas), SZE added a comment - 13/Oct/08 06:08 PM
4395_20081011_0.18.patch: for 0.18

Tsz Wo (Nicholas), SZE added a comment - 13/Oct/08 06:15 PM
I just committed this.

Raghu Angadi added a comment - 13/Oct/08 09:01 PM
I think a considerable part of the reason why this bug got in is lack of javadoc contract for setOwner() methods. Though these are supposed to be hdfs internal, javadoc should have been there. But this comment is too late for this jira I guess.

Hudson added a comment - 15/Oct/08 01:56 PM