Comments (2)
Another issue is that some of the pooled Mongo instances are not closed. Leading to populate raising an exception about the external semaphores not being able to be registered.
from voyage.
With a session pool of max 10 entries I end up with 101 open Mongo connections during a stepdown from primary to the new primary.
This seems to be due lack of concurrency control in the VOMongoRepositoryResolver. In case a query fails >>#resetPool or just >>#reset will be invoked. In the latter the existing pool will be flushed and a new one is created. There are three race conditions.
-
The >>#flush and >>#populate are ran concurrently. New connections are added to a discarded pool after it has been flushed. This can be mitigated by setting the desired pool size to 0 before calling flush. It does seem to fix the issue I see.
-
With multiple calls to >>#reset at the same time we can populate/discard pools that we have not seen yet. There should be some locking around the pool...
from voyage.
Related Issues (20)
- Rewrite install script for travis HOT 1
- Refactor VOCollector
- Make save selectors with options available in object
- Unify querying interface
- P8 Win64: Voyage not installing HOT 1
- Arango: 2 tests with DNU HOT 5
- mongo: slaveOk flag should be subject to the readPreference handling HOT 2
- in VOSeedVersionGenerator >> #newVersion method throws DNU HOT 4
- VOMongoJSONSerializer have no references maybe we should remove it
- VOMongoRepository InstanceVariable host & port are unuse HOT 3
- [Voyage-mongo-tests] VOMongoTest class >> #isAbstract strange implementation HOT 2
- typo conflict on VOReadOperation & VOExternalRepository >> #synchronize: HOT 1
- why using UUID instead of VOSeedVersionGenerator HOT 2
- Mongo connections not being returned to pool HOT 1
- Links in Others are 404
- Select many with sort block fails HOT 1
- Remove ConfigurationOf* HOT 1
- The links in README are not working HOT 2
- MongoClient instances are not GCd HOT 2
- Pharo 12: Update WeakRegistry references
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voyage.