[ 
https://issues.apache.org/jira/browse/HADOOP-17895?focusedWorklogId=648911&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-648911
 ]

ASF GitHub Bot logged work on HADOOP-17895:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Sep/21 22:57
            Start Date: 09/Sep/21 22:57
    Worklog Time Spent: 10m 
      Work Description: cnauroth commented on pull request #3391:
URL: https://github.com/apache/hadoop/pull/3391#issuecomment-916495654


   ```
       Path dir = path("testMkDirRmDirUnicode/dir-\\U0001f63b");
   ```
   
   Something looks off with the test.  That looks like `\\U`, so the 
double-slash escapes to just one slash, followed by the rest of the string 
literal.  A Unicode character escape needs `\u` (single slash followed by 
lower-case u).
   
   Still, I tried changing the test locally to use a Unicode escape, and I 
still couldn't reproduce a failure.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 648911)
    Time Spent: 50m  (was: 40m)

> RawLocalFileSystem mkdirs with unicode filename doesn't work in Hadoop 3
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-17895
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17895
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: common, fs
>    Affects Versions: 3.3.1
>            Reporter: Zamil Majdy
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> *Bug description:*
> `fs.mkdirs` command for `RawLocalFileSystem` doesn't work in Hadoop 3 with 
> NativeIO enabled.
> The failure was happening when doing the native `chmod` command to the file 
> (the `mkdir` command itself is working).
> Stacktrace:
> {{ENOENT: No such file or directory  ENOENT: No such file or directory at 
> org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmodImpl(Native Method) at 
> org.apache.hadoop.io.nativeio.NativeIO$POSIX.chmod(NativeIO.java:382) at 
> org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:974)
>  at 
> org.apache.hadoop.fs.RawLocalFileSystem.mkOneDirWithMode(RawLocalFileSystem.java:660)
>  at 
> org.apache.hadoop.fs.RawLocalFileSystem.mkdirsWithOptionalPermission(RawLocalFileSystem.java:700)
>  at 
> org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:672)}}
>  
> *To reproduce:*
>  * Add `fs.mkdirs` in RawLocalFileSystem with NativeIO enabled.
>  * Sample: [https://github.com/apache/hadoop/pull/3391]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to