[
https://issues.apache.org/jira/browse/RYA-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16304757#comment-16304757
]
ASF GitHub Bot commented on RYA-414:
------------------------------------
GitHub user kchilton2 opened a pull request:
https://github.com/apache/incubator-rya/pull/256
RYA-414
## Description
A Mongo Sail object has been updated to only use a single MongoClient and
only single instances of each indexer. By doing this, we can have multiple sail
objects in memory that are able to talk to different MongoDB based Rya
instances. For example, we could auth using the DB administrator in the Mongo
Shell as well as create a sail object as a user that is able to query a
specific instance within the same JVM at the same time.
### Tests
Updated tests that were effected by the refactor.
### Links
[Jira](https://issues.apache.org/jira/browse/RYA-
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kchilton2/incubator-rya RYA-415
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-rya/pull/256.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 #256
----
commit 767349dac9822cd13e92f9b117d1b5d2dad13e3d
Author: kchilton2 <kevin.e.chilton@...>
Date: 2017-12-23T01:52:27Z
RYA-414 Introduced the stateful mongo configuratino object so that it is
the arbitor of MongoDB state within a Sail object.
commit 17cebae3328916bd80fbe5447da5ccb660539556
Author: Andrew Smith <smith3at@...>
Date: 2017-12-26T19:30:32Z
RYA-414 Removed mongo connection factory
addressed the indexers that used the factory
addressed the geo project
commit 157c06491cd814a1d6e445ebfe77fc63226e5739
Author: kchilton2 <kevin.e.chilton@...>
Date: 2017-12-26T23:42:33Z
RYA-414 Fixing broken tests, cleaning up documentate, cleaning up
whitespace.
----
> Fix inconsistent method of using MongoClient within a Sail object
> -----------------------------------------------------------------
>
> Key: RYA-414
> URL: https://issues.apache.org/jira/browse/RYA-414
> Project: Rya
> Issue Type: Bug
> Reporter: Andrew Smith
> Assignee: Kevin Chilton
> Priority: Blocker
>
> We've decided to introduce a stateful configuration object that is used to
> hold onto objects that needs to be shared across components within a Sail
> object in favor of having a static holder. The static holder limited our
> ability to use more than a single Sail object within a single JVM because all
> of those Sail objects would all have to access the same Mongo DB repository.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)