[ 
https://issues.apache.org/jira/browse/HADOOP-14488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16037052#comment-16037052
 ] 

Steve Loughran commented on HADOOP-14488:
-----------------------------------------

code
{code}
  ctest("commit", " ") {
    val fs = filesystem
    val work = testPath(fs, "work")
    val task00 = new Path(work, "task00")
    fs.mkdirs(task00)
    val out = fs.create(new Path(task00, "part-00"), false)
    out.writeChars("hello")
    out.close();
    fs.listStatus(task00).foreach(stat =>
      fs.rename(stat.getPath, work)
    )
    val statuses = fs.listStatus(work)   // **HERE**
    require("part-00" == statuses(0).getPath.getName)
  }
{code}

> s34guard localdynamo listStatus fails after renaming file into directory
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-14488
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14488
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>            Reporter: Steve Loughran
>
> Running scala integration test with inconsistent s3 client & local DDB enabled
> {code}
> fs.rename("work/task-00/part-00", work)
> fs.listStatus(work)
> {code}
> The list status work fails with a message about the childStatus not being a 
> child of the parent. 
> Hypothesis: rename isn't updating the child path entry



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to