You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2007/10/19 04:26:50 UTC

[jira] Created: (HADOOP-2078) Name-node should be able to close empty files.

Name-node should be able to close empty files.
----------------------------------------------

                 Key: HADOOP-2078
                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
             Project: Hadoop
          Issue Type: Bug
    Affects Versions: 0.15.0
            Reporter: Konstantin Shvachko
            Assignee: Konstantin Shvachko
             Fix For: 0.16.0


When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
and issues a warning "NameSystem.completeFile: failed to complete".
I don't see any reason why empty files should not be allowed.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-2078:
----------------------------------------

    Attachment:     (was: emptyClose.patch)

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose1.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536104 ] 

dhruba borthakur commented on HADOOP-2078:
------------------------------------------

Good catch. I wonder why our unit test does not catch this one. There is a test that checks zero-length files.

Shouldn't the test be if (fileBlocks == null || pendingFile == null) { throw exception() }?


> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-2078:
----------------------------------------

    Attachment: emptyClose1.patch

Simplifying the log message is findBugs recommends.


> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose1.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-2078:
----------------------------------------

    Status: Open  (was: Patch Available)

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537837 ] 

Hadoop QA commented on HADOOP-2078:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12368449/emptyClose1.patch
against trunk revision r588341.

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

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

    javac +1.  The applied patch does not generate any new compiler 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://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1000/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1000/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1000/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1000/console

This message is automatically generated.

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose1.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537763 ] 

Hadoop QA commented on HADOOP-2078:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12367987/emptyClose.patch
against trunk revision r588341.

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

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

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

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

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

    contrib tests -1.  The patch failed contrib unit tests.

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

This message is automatically generated.

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-2078:
-------------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I just committed this. Thanks Konstantin!

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose1.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536341 ] 

Konstantin Shvachko commented on HADOOP-2078:
---------------------------------------------

testZeroSizeFile() does not fail because DFSClient writes 0 bytes into the file before closing.
When the output stream buffer is empty DFSClient .endBlock() allocates one block and sends 0 bytes to 2 data-nodes. 
The data-nodes create one empty data-file, and one not empty meta-file each and then report to the name-node that the block have been received.
So empty file is represented by one block of size 0.

In the case you describe fileBlocks == null and pendingFile != null. So condition 
{code}
fileBlocks == null || pendingFile == null
{code}
is equivalent to
{code}
fileBlocks == null
{code}
They are not equivalent only if fileBlocks != null and pendingFile == null, which never happens. Because no file means no blocks.

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-2078:
-------------------------------------

    Status: Patch Available  (was: Open)

Resubmitting patch so that the automatic tests run can occur.

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-2078:
----------------------------------------

    Status: Patch Available  (was: Open)

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose1.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-2078:
-------------------------------------

    Component/s: dfs

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-2078:
-------------------------------------

    Status: Patch Available  (was: Open)

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536395 ] 

Konstantin Shvachko commented on HADOOP-2078:
---------------------------------------------

I don't think it is critical for 0.15

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536376 ] 

dhruba borthakur commented on HADOOP-2078:
------------------------------------------

Ok got it. Thanks for the explanation. Would it make sense to enhance the unit test in such a way that this condition is detected?

Also, do u think that we should put this into the 0.15 release?

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536267 ] 

Konstantin Shvachko commented on HADOOP-2078:
---------------------------------------------

I don't see any tests with empty files, do you? We always write something into it before closing.
Checking pendingFile is redundant, since if fileBlocks is null then pendingFile is always null as well.

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-2078:
----------------------------------------

    Attachment: emptyClose.patch

This patch solves the problem.

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536283 ] 

dhruba borthakur commented on HADOOP-2078:
------------------------------------------

There is a test called TestDFSShell.testZeroSizeFile() that cheks for zero-size files I wonder why it cound not detect this error earlier. Can it be enhanced to catch this problem in future?

I think it is theoretically possible that a FileUnderConstruction exists, in which case pendingFile will be non-null. But the list of blocks associated with it is null, in which case fileBlocks will be null.



> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543220 ] 

Hudson commented on HADOOP-2078:
--------------------------------

Integrated in Hadoop-Nightly #305 (See [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/305/])

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose1.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-2078) Name-node should be able to close empty files.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-2078:
-------------------------------------

    Status: Open  (was: Patch Available)

> Name-node should be able to close empty files.
> ----------------------------------------------
>
>                 Key: HADOOP-2078
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2078
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.0
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: 0.16.0
>
>         Attachments: emptyClose.patch
>
>
> When I try to close an empty file, the name-node throws an exception "Could not complete write to file" 
> and issues a warning "NameSystem.completeFile: failed to complete".
> I don't see any reason why empty files should not be allowed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.