[
https://issues.apache.org/jira/browse/BEAM-6993?focusedWorklogId=227512&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-227512
]
ASF GitHub Bot logged work on BEAM-6993:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Apr/19 08:37
Start Date: 15/Apr/19 08:37
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_r275256141
##########
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:
I wonder if we should create this directory if if nothing is staged. Just
like the meta files which are also created. Skipping errors on non-existing
directories seems like it has potential for bugs.
----------------------------------------------------------------
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: 227512)
Time Spent: 1h 20m (was: 1h 10m)
> 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 20m
> 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)