wooga / locker

Atomic distributed "check and set" for short-lived keys
MIT License
152 stars 14 forks source link

some bits missing? #8

Open kevinbombadil opened 9 years ago

kevinbombadil commented 9 years ago

I'd like to try this out and have been reading the code but wonder if there are a few bits missing. First is test_server.hrl line 3 in test/locker_SUITE.erl. Also the slave module - see below: 4> locker_SUITE:quorum([]). \ exception exit: not_alive in function slave:start/5 (slave.erl, line 197) in call from locker_SUITE:setup/1 (locker_SUITE.erl, line 363) in call from lists:map/2 (lists.erl, line 1224) in call from locker_SUITE:quorum/1 (locker_SUITE.erl, line 50)

knutin commented 9 years ago

Hey Kevin,

The test suite runs fine on my machine (TM). It does require the setup of erlang slave nodes, which requires dns lookups to work. Are you able to start an erlang slave node from the shell? Are your erlang nodes able to find each other if you use "long names"? What does your /etc/hosts file say?

On 24.12.2014, at 21:04, kevinbombadil notifications@github.com wrote:

I'd like to try this out and have been reading the code but wonder if there are a few bits missing. First is test_server.hrl line 3 in test/locker_SUITE.erl. Also the slave module - see below: 4> locker_SUITE:quorum([]). \ exception exit: not_alive in function slave:start/5 (slave.erl, line 197) in call from locker_SUITE:setup/1 (locker_SUITE.erl, line 363) in call from lists:map/2 (lists.erl, line 1224) in call from locker_SUITE:quorum/1 (locker_SUITE.erl, line 50)

— Reply to this email directly or view it on GitHub.

kevinbombadil commented 9 years ago

Thanks for getting back to me so quick! I'll be away for a few days but I'll try this and get back to you. I suspect I need to do some homework.

Can you also let me know what this line (3) in locker_SUITE.erl is about? - the file being included is not part of the distribution. -include_lib("test_server/include/test_server.hrl").