tarantool / queue

Create task queues, add and take jobs, monitor failed tasks
Other
237 stars 52 forks source link

bug: second take() hangs after disconnect during take() #104

Closed Totktonada closed 4 years ago

Totktonada commented 4 years ago

@Mons describes the following case when take() may hang.

Take a task from a connector (say, net.box), disconnect and connect again, try to take this task again. It is stated that the second take will (may?) hang.

It seems that something like this was fixed in xqueue here: https://github.com/moonlibs/xqueue/commit/eb501508c9ffc7ca5f56613a41458d2bb3c0843a

Let's verify it, fix and cover with a test.

LeonidVas commented 4 years ago

Looks like it has been fixed twice in https://github.com/tarantool/queue/issues/103 and https://github.com/tarantool/tarantool/issues/4627

LeonidVas commented 4 years ago

D'oh, I was wrong. This unrelated to #103 bug.