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

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

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

 ##########
 File path: 
runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/artifact/BeamFileSystemArtifactStagingService.java
 ##########
 @@ -164,8 +164,11 @@ 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));
+    if (!proxyManifest.getLocationList().isEmpty()) {
+      // directory only exists when there is at least one artifact
+      LOG.debug("Removing artifacts: {}", artifactsResourceId);
 
 Review comment:
   "Removing artifacts dir"
 
----------------------------------------------------------------
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: 227797)
    Time Spent: 2h 10m  (was: 2h)

> 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: 2h 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