Comments (6)
Yes, the gproc_dist test in particular is a bit timing sensitive.
I believe I have an explanation for that, and have been working on a redesign of some parts. As usual, I've been distracted by other things, but will try to finish it asap.
from gproc.
Ok, got that. Meanwhile I'll just disable these three until they will be rewritten.
from gproc.
Actually, the case_clause error on gproc_dist_tests:562 has a very simple explanation: it assumes that the leader is one of two nodes, but there are in fact three nodes started in the test run. They are always in the same order in the Nodes
list, and we can tell from the error that it was in fact the third node that was leader in this case. Duh.
**error:{case_clause,'dist_test_n3@buildvm-ppc64le-10'}
The way the test case works, we simply need to pick a node that isn't the leader, so that's an easy fix.
The other error, timeout in t_leader_dies()
is likely more complex. Presumably, it's the rpc:call()
to gproc_dist:sync()
that takes too long, which might imply that the remaining nodes are stuck in their safe loops, and leader election, for some reason, has become protracted. This would be a gen_leader
issue, presumably.
I have been meaning to switch to locks_leader
, but the reason why I've delayed that is that while gen_leader
has some obvious problems, it's by no means certain that switching to a component with no obvious problems will improve things. After all, gen_leader
has seen much more use than locks_leader
.
from gproc.
Ok, cool! I'm going to try it out.
from gproc.
Looks like it's much more stable now so I'm going to close this one issue.
I'll open a new one If any timing issues pop up again.
from gproc.
Yes, much more stable, but I'm still not really happy (but go ahead and close this issue). The next steps might be to move over to locks_leader, and also get up and running with QuickCheck-based testing.
from gproc.
Related Issues (20)
- Compiling with OTP 20 yields warnings about crypto:rand_uniform/2 HOT 4
- goodbye() doesn't work in global mode HOT 1
- Can't reset a shared counter
- Unable to start processes in global mode (Elixir)
- Generic server gproc terminating on reg HOT 2
- Warning On OTP 21.2 HOT 1
- aggregated counter can leak HOT 1
- Removing a worker from a pool does not make room for a new worker HOT 1
- gproc_pool round_robin is broken a bit HOT 2
- Monitor stops working if one of the processes monitoring the same name terminates
- Has gen_leader been deprecated ? HOT 1
- Replace key owner HOT 4
- local_only exception error when trying to register Pid golobally HOT 8
- OTP Release 23 depreciated functions HOT 1
- Use a stable app version number HOT 2
- The value of `auto_size` is not judged when the worker is removed HOT 1
- Relase for OTP 24 HOT 2
- If gproc:await finishes with timeout then generic leader gproc_dist terminating with error.
- Tag 1.0.0 is missing
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 gproc.