Git Product home page Git Product logo

Comments (6)

uwiger avatar uwiger commented on August 25, 2024

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.

lemenkov avatar lemenkov commented on August 25, 2024

Ok, got that. Meanwhile I'll just disable these three until they will be rewritten.

from gproc.

uwiger avatar uwiger commented on August 25, 2024

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.

lemenkov avatar lemenkov commented on August 25, 2024

Ok, cool! I'm going to try it out.

from gproc.

lemenkov avatar lemenkov commented on August 25, 2024

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.

uwiger avatar uwiger commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.