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 "Pete Wyckoff (JIRA)" <ji...@apache.org> on 2008/07/09 03:40:31 UTC

[jira] Created: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
--------------------------------------------------------------------------------------------

                 Key: HADOOP-3723
                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
             Project: Hadoop Core
          Issue Type: Bug
          Components: libhdfs
            Reporter: Pete Wyckoff
            Assignee: Pete Wyckoff
            Priority: Minor


hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.


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


[jira] Commented: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

Posted by "Koji Noguchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613467#action_12613467 ] 

Koji Noguchi commented on HADOOP-3723:
--------------------------------------

+1. 
Maybe assign errno when O_RDWR is passed in.  ENOSYS?

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Commented: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Hadoop QA commented on HADOOP-3723:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12386088/patch0.txt
  against trunk revision 677362.

    +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 release audit.  The applied patch does not increase the total number of release audit warnings.

    +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/2878/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2878/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2878/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2878/console

This message is automatically generated.

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Release Note: hdfsOpenFile can now handle multiple orr-ed flags and will reject the O_RDWR flag
          Status: Patch Available  (was: Open)

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Assignee: Pi Song  (was: Pete Wyckoff)
      Status: Open  (was: Patch Available)

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Robert Chansler updated HADOOP-3723:
------------------------------------

    Release Note:   (was: hdfsOpenFile can now handle multiple orr-ed flags and will reject the O_RDWR flag)

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>             Fix For: 0.19.0
>
>         Attachments: patch0.txt, patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Status: Patch Available  (was: Open)

Test case hdfs_test.c is now updated properly.


> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Attachment: patch0.txt

oops - put O_CREAT test in wrong place - now in hdfs_test.c


> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Status: Open  (was: Patch Available)

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

dhruba borthakur updated HADOOP-3723:
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.19.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

I just committed this. Thanks Pete!

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>             Fix For: 0.19.0
>
>         Attachments: patch0.txt, patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Attachment: patch0.txt

incorporated koji's comment about setting errno - set it to ENOTSUP.


> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

dhruba borthakur updated HADOOP-3723:
-------------------------------------

    Status: Open  (was: Patch Available)

Have to resubmit so that HadoopQA tests the latest patch

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

dhruba borthakur updated HADOOP-3723:
-------------------------------------

    Status: Patch Available  (was: Open)

Have to resubmit so that HadoopQA tests the latest patch

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Attachment: patch0.txt

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Status: Patch Available  (was: Open)

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Commented: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Hadoop QA commented on HADOOP-3723:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12386220/patch0.txt
  against trunk revision 677470.

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

    +1 tests included.  The patch appears to include 1 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 release audit.  The applied patch does not increase the total number of release audit warnings.

    +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/2886/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2886/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2886/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2886/console

This message is automatically generated.

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pi Song
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt, patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Commented: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Hadoop QA commented on HADOOP-3723:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12385693/patch0.txt
  against trunk revision 676069.

    +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 release audit.  The applied patch does not increase the total number of release audit warnings.

    +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/2839/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2839/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2839/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2839/console

This message is automatically generated.

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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


[jira] Updated: (HADOOP-3723) libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT

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

Pete Wyckoff updated HADOOP-3723:
---------------------------------

    Attachment: patch0.txt

> libhdfs only accepts O_WRONLY and O_RDONLY so does not accept things like O_WRONLY | O_CREAT
> --------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3723
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: libhdfs
>            Reporter: Pete Wyckoff
>            Assignee: Pete Wyckoff
>            Priority: Minor
>         Attachments: patch0.txt, patch0.txt
>
>
> hdfs.c in the hdfsOpenFile method checks for flags == O_WRONLY rather than  flags & O_WRONLY and same for reads.

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