You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/03/08 22:33:29 UTC

[1/3] incubator-tinkerpop git commit: Update changelog.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1096 0019e8875 -> 51f863ac7


Update changelog.


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

Branch: refs/heads/TINKERPOP-1096
Commit: 66d319ec103ffddc25495c9ba6ee2cc86a3c7c66
Parents: 0019e88
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Mar 8 15:40:51 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Mar 8 15:40:51 2016 -0500

----------------------------------------------------------------------
 CHANGELOG.asciidoc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/66d319ec/CHANGELOG.asciidoc
----------------------------------------------------------------------
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index dda6e80..15967fa 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -26,7 +26,9 @@ image::https://raw.githubusercontent.com/apache/incubator-tinkerpop/master/docs/
 TinkerPop 3.1.2 (NOT OFFICIALLY RELEASED YET)
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-* Bump to commons-collections 3.2.2.
+* The `:remote` for `tinkerpop.server` now includes an option to establish the connection as a "session".
+* Provided an implementation for calls to `SessionedClient.alias()`, which formerly threw an `UnsupportedOperationException`.
+* Bumped to commons-collections 3.2.2.
 * Fixed a compilation bug in `TraversalExplanation`.
 * Fixed bug where a session explicitly closed was being closed again by session expiration.
 * Improved the recovery options for Gremlin Driver after failed requests to Gremlin Server.


[3/3] incubator-tinkerpop git commit: Added a section for Console Sessions.

Posted by sp...@apache.org.
Added a section for Console Sessions.


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

Branch: refs/heads/TINKERPOP-1096
Commit: 51f863ac76fb7fc978581bb9bb5ce65e40388662
Parents: 91b9d23
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Mar 8 16:33:06 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Mar 8 16:33:06 2016 -0500

----------------------------------------------------------------------
 .../src/reference/gremlin-applications.asciidoc | 50 +++++++++++++++++---
 1 file changed, 44 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/51f863ac/docs/src/reference/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-applications.asciidoc b/docs/src/reference/gremlin-applications.asciidoc
index 9810acd..9c2699c 100644
--- a/docs/src/reference/gremlin-applications.asciidoc
+++ b/docs/src/reference/gremlin-applications.asciidoc
@@ -304,12 +304,12 @@ on how to develop a driver for Gremlin Server.
 By default, communication with Gremlin Server occurs over link:http://en.wikipedia.org/wiki/WebSocket[WebSockets] and
 exposes a custom sub-protocol for interacting with the server.
 
-[[connecting-via-console]]
-Connecting via Console
-~~~~~~~~~~~~~~~~~~~~~~
+[[starting-gremlin-server]]
+Starting Gremlin Server
+~~~~~~~~~~~~~~~~~~~~~~~
 
-The most direct way to get started with Gremlin Server is to issue it some remote Gremlin scripts from the Gremlin
-Console.  To do that, first start Gremlin Server:
+Gremlin Server comes packaged with a script called `bin/gremlin-server.sh` to get it started (use `gremlin-server.bat`
+on Windows):
 
 [source,text]
 ----
@@ -374,7 +374,12 @@ are global to all requests. In addition, any functions that are defined will be
 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:
+[[connecting-via-console]]
+Connecting via Console
+~~~~~~~~~~~~~~~~~~~~~~
+
+With Gremlin Server running it is now possible to issue some scripts to it for processing.  Start Gremlin Console as
+follows:
 
 [source,text]
 ----
@@ -467,6 +472,10 @@ The Gremlin Server `:remote` command has the following configuration options:
 |timeout |Specifies the length of time in milliseconds that the remote will wait for a response from the server.
 |=========================================================
 
+[[console-aliases]]
+Aliases
+^^^^^^^
+
 The `alias` configuration command for the Gremlin Server `:remote` can be useful in situations where there are
 multiple `Graph` or `TraversalSource` instances on the server, as it becomes possible to rename them from the client
 for purposes of execution within the context of a script.  Therefore, it becomes possible to submit commands this way:
@@ -478,6 +487,35 @@ for purposes of execution within the context of a script.  Therefore, it becomes
 :> x.E().label().groupCount()
 ----
 
+[[console-sessions]]
+Sessions
+^^^^^^^^
+
+A `:remote` created in the following fashion will be "sessionless", meaning each script issued to the server with
+`:>` will be encased in a transaction and no state will be maintained from one request to the next.
+
+[gremlin-groovy]
+----
+:remote connect tinkerpop.server conf/remote-objects.yaml
+----
+
+In other words, the transaction will be automatically committed (or rolledback on error) and any variables declared
+in that script will be forgotten for the next request. See the section on <<sessions, "Considering Sessions">>
+for more information on that topic.
+
+To enable the remote to connect with a session the `connect` argument takes another argument as follows:
+
+[gremlin-groovy]
+----
+:remote connect tinkerpop.server conf/remote.yaml session
+:> x = 1
+:> y = 2
+:> x + y
+----
+
+With the above command a session gets created with a random UUID for a session identifier. It is also possible to
+assign a custom session identifier by adding it as the last argument to `:remote` command above.
+
 [[connecting-via-java]]
 Connecting via Java
 ~~~~~~~~~~~~~~~~~~~


[2/3] incubator-tinkerpop git commit: Add upgrade docs for console sessions and session aliasing.

Posted by sp...@apache.org.
Add upgrade docs for console sessions and session aliasing.


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

Branch: refs/heads/TINKERPOP-1096
Commit: 91b9d239165dae1900ac2544297f62321301e2f9
Parents: 66d319e
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Mar 8 15:48:00 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Tue Mar 8 15:48:00 2016 -0500

----------------------------------------------------------------------
 docs/src/upgrade/release-3.1.x-incubating.asciidoc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/91b9d239/docs/src/upgrade/release-3.1.x-incubating.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/upgrade/release-3.1.x-incubating.asciidoc b/docs/src/upgrade/release-3.1.x-incubating.asciidoc
index 2652d03..bc127b0 100644
--- a/docs/src/upgrade/release-3.1.x-incubating.asciidoc
+++ b/docs/src/upgrade/release-3.1.x-incubating.asciidoc
@@ -32,6 +32,23 @@ Please see the link:https://github.com/apache/incubator-tinkerpop/blob/3.1.2-inc
 Upgrading for Users
 ~~~~~~~~~~~~~~~~~~~
 
+Aliasing Sessions
+^^^^^^^^^^^^^^^^^
+
+Calls to `SessionedClient.alias()` used to throw `UnsupportedOperationException` and it was therefore not possible to
+use that capability with a session. That method is now properly implemented and aliasing is allowed.
+
+See: link:https://issues.apache.org/jira/browse/TINKERPOP-1096[TINKERPOP-1096]
+
+Console Remote Sessions
+^^^^^^^^^^^^^^^^^^^^^^^
+
+The `:remote tinkerpop.server` command now allows for a "session" argument to be passed to `connect`. This argument,
+tells the remote to configure it with a Gremlin Server session. In this way, the console can act as a window to script
+exception on the server and behave more like a standard "local" console when it comes to script execution.
+
+See: link:https://issues.apache.org/jira/browse/TINKERPOP-1097[TINKERPOP-1097]
+
 TinkerPop Archetypes
 ^^^^^^^^^^^^^^^^^^^^