Issue Details (XML | Word | Printable)

Key: HADOOP-3241
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Lohit Vijayarenu
Reporter: Lohit Vijayarenu
Votes: 0
Watchers: 2
Operations

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

DFSFileInfo should also have field to say if the file is underconstrction

Created: 11/Apr/08 11:37 PM   Updated: 08/Jul/09 04:43 PM
Return to search
Component/s: None
Affects Version/s: 0.18.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-3241-1.patch 2008-04-12 09:35 AM Lohit Vijayarenu 5 kB
Text File Licensed for inclusion in ASF works HADOOP-3241-2.patch 2008-04-12 09:36 PM Lohit Vijayarenu 6 kB
Issue Links:
Reference
 

Hadoop Flags: Incompatible change
Release Note: Adds an additional flag to DFSFileInfo
Resolution Date: 04/Jun/08 07:51 PM


 Description  « Hide
It would be good to have a flag which says if the DFSFileInfo object corresponds to a file under construction or not.

 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/Apr/08 11:56 PM - edited
The flag is also useful for append. See HADOOP-1700.

Lohit Vijayarenu added a comment - 12/Apr/08 09:35 AM
This patch adds underConstruction flag to DFSFileInfo which is true only if its a file and is underConstruction. Have added a testcase to check this.

Hadoop QA added a comment - 12/Apr/08 02:27 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12379977/HADOOP-3241-1.patch
against trunk revision 645773.

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

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

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

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

findbugs -1. The patch appears to introduce 1 new Findbugs warnings.

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

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

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

This message is automatically generated.


Lohit Vijayarenu added a comment - 12/Apr/08 09:36 PM
FileStats#equals() checks if the path contained in FileStatus are equal. if we consider underConstruction flag being dynamic just like length, then DFSFileInfo should also just check if path are same. So, for now, I am calling super.equals. This is also to get rid of findbugs warnings.

Hadoop QA added a comment - 12/Apr/08 10:55 PM
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12379986/HADOOP-3241-2.patch
against trunk revision 645773.

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

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

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

javac +1. The applied patch does not generate any new javac compiler warnings.

release audit +1. The applied patch does not generate any new release audit warnings.

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

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

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

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

This message is automatically generated.


Doug Cutting added a comment - 14/Apr/08 06:36 PM
The patch looks fine. But what is the use case?

dhruba borthakur added a comment - 14/Apr/08 08:55 PM
If my memory serves me right, the "append" design says that if a Reader retrieves a list of blocks from the namenode and the inode is marked "underConstruction", then the Reader can do something more intelligent then returning failure when the application tries to read from beyond the last known file size. This is more of an optimization and is not really required.

Owen O'Malley added a comment - 23/Apr/08 09:12 PM
If this isn't required, we should reject it.

The patch also has some strange code where the new methods just call their super methods. Is that necessary for some reason?


dhruba borthakur added a comment - 06/May/08 07:24 AM
I vote on closing this issue as a "won't fix" for now.

Lohit Vijayarenu added a comment - 04/Jun/08 07:51 PM
Sorry I missed updating this. When this JIRA was open, we thought it would be useful for Appends, but it might not be at this point of time. Closing this as wont fix