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

ASF GitHub Bot logged work on GOBBLIN-897:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Nov/19 18:29
            Start Date: 05/Nov/19 18:29
    Worklog Time Spent: 10m 
      Work Description: zxcware commented on pull request #2755: [GOBBLIN-897] 
adds local FS spec executor to write jobs to a local dir
URL: https://github.com/apache/incubator-gobblin/pull/2755#discussion_r342724245
 
 

 ##########
 File path: 
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/spec_executorInstance/LocalFsSpecProducer.java
 ##########
 @@ -71,9 +72,10 @@ public LocalFsSpecProducer(Config config) {
 
   private Future<?> writeSpec(Spec spec, SpecExecutor.Verb verb) {
     if (spec instanceof JobSpec) {
-      String specString = spec.toString();
+      URI specUri = spec.getUri();
       // format the JobSpec to have file of <flowGroup>_<flowName>.job
-      String jobFileName = specString.replace('/', 
'_').substring(specString.lastIndexOf(':')+2, specString.length()-1) + ".job";
+      String[] uriTokens = specUri.getPath().split("/");
 
 Review comment:
   We can be more DRY(Don't Repeat Yourself) by making a small function named 
`getJobFileName(uri)`
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


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

    Worklog Id:     (was: 338915)
    Time Spent: 2h  (was: 1h 50m)

> Implement Local FS Spec Executor
> --------------------------------
>
>                 Key: GOBBLIN-897
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-897
>             Project: Apache Gobblin
>          Issue Type: New Feature
>          Components: gobblin-core, gobblin-service
>    Affects Versions: 0.15.0
>            Reporter: William Lo
>            Assignee: Abhishek Tiwari
>            Priority: Major
>             Fix For: 0.15.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>




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

Reply via email to