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 2019/05/07 14:33:00 UTC

[tinkerpop] branch master updated: Cleared the input buffer after exceptions in Gremlin Console CTR

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new df124b1  Cleared the input buffer after exceptions in Gremlin Console CTR
     new 7f6ba01  Merge branch 'tp33'
df124b1 is described below

commit df124b1cf14c9be572f52465c93dc4f4d8a807b1
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Tue May 7 10:32:24 2019 -0400

    Cleared the input buffer after exceptions in Gremlin Console CTR
---
 CHANGELOG.asciidoc                                                      | 1 +
 .../src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index da2d017..c374f2f 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -36,6 +36,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
 * Quieted "host unavailable" warnings for both the driver and Gremlin Console.
 * Fixed bug in `GremlinGroovyScriptEngine` interpreter mode around class definitions.
 * Implemented `EdgeLabelVerificationStrategy`.
+* Cleard the input buffer after exceptions in Gremlin Console.
 * Added parameter to configure the `processor` in the gremlin-javascript `client` constructor.
 
 [[release-3-3-6]]
diff --git a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
index fb9c9a4..aeec63a 100644
--- a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
+++ b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
@@ -374,6 +374,8 @@ class Console {
             if (!interactive) System.exit(1)
         }
 
+        groovy.buffers.current().clear()
+
         return null
     }