Open esabol opened 5 years ago
Related/duplicate https://github.com/gearman/gearmand/issues/50
Ah, right... I saw that, but I didn't get past the title since I was mainly concerned with t/memcached instead t/cycle. Lots of good discussion there already.
Ok, how about having memcached bind to port 0 and then using ss
or lsof
or netstat
to get the port number memcached ends up listening on?
Actually, it appears the problem isn't with the memcached port, but in starting up gearmand: https://github.com/gearman/gearmand/blob/c343b3b93e057dccf2a93a8109663437ceded148/tests/memcached_test.cc#L151
Actually, it appears the problem isn't with the memcached port, but in starting up gearmand
Indeed, but in the line 119 https://github.com/gearman/gearmand/blob/c343b3b93e057dccf2a93a8109663437ceded148/tests/memcached_test.cc#L119
The
t/memcached
fails in Travis CI sometimes. I figured we needed an issue to track it.When the failure happens, the following message appears in test-suite.log:
What causes it?
A race condition with libtest's
get_free_port()
, right? So the port becomes busy in between the call toget_free_port()
and when thet/memcached
uses it, presumably.Possible solutions