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

Joep Rottinghuis commented on YARN-5359:
----------------------------------------

Patch looks good.
There may be one additional unit test using Linux style paths:
TestFileSystemTimelineWriterImpl#testWriteEntityToFile
Around line 87
{code}
      String fileName = fsi.getOutputRoot() +
          "/entities/cluster_id/user_id/flow_name/flow_version/12345678/" +
          "app_id/" + type + "/" + id +
          FileSystemTimelineWriterImpl.TIMELINE_SERVICE_STORAGE_EXTENSION;
      Path path = Paths.get(fileName);
      File f = new File(fileName);
      assertTrue(f.exists() && !f.isDirectory());
{code}
Similar around line 102
{code}
      String fileName2 = fsi.getOutputRoot() +
          "/entities/cluster_id/user_id/flow_name/flow_version/12345678/app_id/"
          + type2 + "/" + id2 +
          FileSystemTimelineWriterImpl.TIMELINE_SERVICE_STORAGE_EXTENSION;
{code}

> FileSystemTimelineReader/Writer uses unix-specific default
> ----------------------------------------------------------
>
>                 Key: YARN-5359
>                 URL: https://issues.apache.org/jira/browse/YARN-5359
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Sangjin Lee
>            Assignee: Sangjin Lee
>            Priority: Minor
>         Attachments: YARN-5359.01.patch, YARN-5359.02.patch
>
>
> {{FileSystemTimelineReaderImpl}} and {{FileSystemTimelineWriterImpl}} use a 
> unix-specific default. It won't work on Windows.
> Also, {{TestFileSystemTimelineReaderImpl}} uses this default directly, which 
> is also brittle against concurrent tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to