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

ASF GitHub Bot logged work on BEAM-6993:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Apr/19 18:01
            Start Date: 14/Apr/19 18:01
    Worklog Time Spent: 10m 
      Work Description: tweise commented on pull request #8303: [BEAM-6993] 
Ignore missing artifacts dir during cleanup
URL: https://github.com/apache/beam/pull/8303#discussion_r275167518
 
 

 ##########
 File path: 
runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/artifact/BeamFileSystemArtifactStagingService.java
 ##########
 @@ -165,7 +165,8 @@ public void removeArtifacts(String stagingSessionToken) 
throws Exception {
     ResourceId artifactsResourceId =
         dir.resolve(ARTIFACTS, StandardResolveOptions.RESOLVE_DIRECTORY);
     LOG.debug("Removing artifacts: {}", artifactsResourceId);
-    FileSystems.delete(Collections.singletonList(artifactsResourceId));
+    FileSystems.delete(
+        Collections.singletonList(artifactsResourceId), 
StandardMoveOptions.IGNORE_MISSING_FILES);
 
 Review comment:
   The artifacts base path is only created once there is actually an artifact 
stored: 
https://github.com/apache/beam/blob/969bab3341cfe3cfcb99cf559573b5b76542e6ef/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/artifact/BeamFileSystemArtifactStagingService.java#L210
 
----------------------------------------------------------------
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: 227377)
    Time Spent: 1h 10m  (was: 1h)

> Default to cleaning staged artifacts after running portable pipeline
> --------------------------------------------------------------------
>
>                 Key: BEAM-6993
>                 URL: https://issues.apache.org/jira/browse/BEAM-6993
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Maximilian Michels
>            Assignee: Maximilian Michels
>            Priority: Major
>              Labels: portability
>             Fix For: 2.13.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> The default is to accumulate staged artifacts of portable pipelines. I think 
> we should change that to delete them after pipeline execution has finished. 
> There is already configuration to override it.
> CC [~angoenka] [~thw]]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to