You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/01/05 23:55:12 UTC

[40/50] incubator-tinkerpop git commit: Add warning about transaction management in initialization scripts for Gremlin Server.

Add warning about transaction management in initialization scripts for Gremlin Server.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/a705c219
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/a705c219
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/a705c219

Branch: refs/heads/TINKERPOP-1033
Commit: a705c21962a2e96cbfc63c381f5903a2b4f9b01b
Parents: d3a59f4
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Dec 29 12:25:13 2015 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Dec 29 12:25:13 2015 -0500

----------------------------------------------------------------------
 docs/src/reference/gremlin-applications.asciidoc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/a705c219/docs/src/reference/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index 747e693..6954b4c 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -366,8 +366,11 @@ single time. In this case, the startup hook loads the "modern" graph into the em
 it for use.  The second key/value pair assigned to the `Map`, named "g", defines a `TraversalSource` from the `Graph`
 bound to the "graph" variable in the YAML configuration file.  This variable `g`, as well as any other variable
 assigned to the `Map`, will be made available as variables for future remote script executions.  In more general
-terms, any key/value pairs assigned to a `Map` returned from the init script will become variables that are global
-to all requests. In addition, any functions that are defined will be cached for future use.
+terms, any key/value pairs assigned to a `Map` returned from the initialization script will become variables that
+are global to all requests. In addition, any functions that are defined will be cached for future use.
+
+WARNING: Transactions on graphs in initialization scripts are not closed automatically after the script finishes
+executing.  It is up to the script to properly commit or rollback transactions in the script itself.
 
 With Gremlin Server running it is now possible to issue some scripts to it for processing.  Start Gremlin Console as follows: