NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Worker restart can cause the worker to stop consuming messages

Open mariusin79 opened this issue 13 years ago • 0 comments

One distributor, two workers, each worker has one worker thread.

Service has messages on distributor queue and one each worker. Stop worker 2, set number of threads to 0, restart worker 1 and worker 2. Move messages from worker 2 queue back to distributor (worker 2 has no threads to process the messages). Worker 1 sends startup message which is consumed by distributor and put on the control queue, distributor sends one message to worker 1, worker 1 consumes message but does not send "I am ready for more work back to distributor". Restarting worker 1 repeats the process; one message consumed, then stops.

This has happened twice in production over 3 weeks. Restarting workers or distributor does not change anything. To get this to work, we have to move all the messages for the distributor queue onto worker 1s queue, then after consuming a couple of hundred messages, the worker suddenly starts to send "I am ready for more work"

mariusin79 avatar Apr 16 '13 06:04 mariusin79