You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Valentyn Kahamlyk (Jira)" <ji...@apache.org> on 2023/05/26 00:04:00 UTC

[jira] [Closed] (TINKERPOP-2941) DO NOT purge the output location if it has content in SparkGraphComputer

     [ https://issues.apache.org/jira/browse/TINKERPOP-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentyn Kahamlyk closed TINKERPOP-2941.
----------------------------------------
    Resolution: Fixed

> DO NOT purge the output location if it has content in SparkGraphComputer
> ------------------------------------------------------------------------
>
>                 Key: TINKERPOP-2941
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2941
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: sparql
>    Affects Versions: 3.6.2
>            Reporter: Redriver
>            Priority: Major
>             Fix For: 3.6.5
>
>
> The default logic for SparkGraphComputer is to purge all content if the output location is specified. That is a dangerous operation especially for the output location which contains contents.
> https://github.com/apache/tinkerpop/blob/master/spark-gremlin/src/main/java/org/apache/tinkerpop/gremlin/spark/process/computer/SparkGraphComputer.java#L317:L324
> The correct behavior is to stop the process if it detects the output location is not empty.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)