GitHub user spmallette opened a pull request:

    https://github.com/apache/incubator-tinkerpop/pull/166

    TINKERPOP3-860 Bindings applied to the PluginAcceptor should appear to 
Gremlin Server

    Bindings from plugins were being pushed into the ScriptEngine context but 
were not being merged into the bindings used on eval.  They had to be merged 
together.  In doing this, I also found a bug where plugins could conflict with 
one another (i.e. the first plugin would install, then the second would come 
along an blow out what the previous one had done) - fixed that.  Added test 
cases to cover these scenarios.
    
    I tested with:
    
    ```text
    mvn clean install
    mvn verify -DskipIntegrationTests=false -pl gremlin-server
    mvn verify -DskipIntegrationTests=false -pl gremlin-groovy
    ```
    
    and also tested Gremlin Server manually:
    
    ```text
    gremlin> :remote connect tinkerpop.server conf/remote.yaml
    ==>Connected - localhost/127.0.0.1:8182
    gremlin> :> hdfs.toString()
    ==>org.apache.hadoop.fs.LocalFileSystem@7154cf94
    ```
    
    A manual test requires:
    
    ```text
    bin/gremlin.sh -i org.apache.tinkerpop hadoop-gremlin 3.1.1-SNAPSHOT
    ```
    
    and editing the gremlin server yaml file to include `tinkerpop.hadoop` in 
the "plugins" key:
    
    ```yaml
    plugins:
      - tinkerpop.tinkergraph
      - tinkerpop.hadoop
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/incubator-tinkerpop TINKERPOP3-860

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-tinkerpop/pull/166.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #166
    
----
commit b503e41552e533bc4420a968ba591faacd1c6e27
Author: Stephen Mallette <[email protected]>
Date:   2015-12-02T17:44:36Z

    Adjusted ScriptEngines to "merge" bindings.
    
    Bindings from plugins were being pushed into the ScriptEngine context but 
were not being merged into the bindings used on eval.  They had to be merged 
together.  In doing this, I also found a bug where plugins could conflict with 
one another (i.e. the first plugin would install, then the second would come 
along an blow out what the previous one had done) - fixed that.  Added test 
cases to cover these scenarios.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to