[rabbitmq-discuss] RabbitMQ consumer rebind in .net

Arindam Nayak nayak.arindam at gmail.com
Fri Aug 30 14:40:33 BST 2013


So what i need to do? should i execute this command?

C:\Windows\system32\cmd.exe /cdir /-C /W
"c:/Users/arindamn/AppData/Roaming/RabbitMQ/db/rabbit at ARINDAMN1-mnesia"


Or how to enable disk space monitoring?


On Friday, 30 August 2013 18:52:49 UTC+5:30, Arindam Nayak wrote:
>
> Anyways, i have uploaded log files from my local rabbit mq server ( 
> consumer code which i have given just now, connects to my local rabbitmq 
> server).
>
> https://docs.google.com/file/d/0B1FltX8OwUHuRXZMTGo3LUpLdm8/edit
> https://docs.google.com/file/d/0B1FltX8OwUHuQXNDVFFDTVBLQWc/edit
>
> On Friday, 30 August 2013 18:26:54 UTC+5:30, Arindam Nayak wrote:
>>
>> The main application exits because it has completed executing. Do you
>> consider that a problem? (BTW I note that RestartConsumer() is not
>> guaranteed to call Consume().)
>> - no, i am telling main application works still we have some data in 
>> queue, when queue is exhausted, still main application gets stuck in while 
>> loop (this is my expected behaviour, again when we have data in queue, it 
>> processes, this is the case for 90% of time). But out of that 10% time, i 
>> don't know what is the exact exception, so i have written restartconsumer 
>> to restart service, which is not working even, you have confirmed this.
>>
>> Do you expect an exception that never arrives, or do you get an
>> exception that you don't expect, or do you get a different exception
>> from the one you expect?
>>
>> yes, i am getting an exception that i don't event expect.
>>
>> If the exception is unexpected could you please post the stacktrace?
>>
>> If the exception is missing or wrong in your view can you point out
>> where you expect it to be thrown?
>>
>> For this above question, i have to design separate consumer service and 
>> post you stacktrace and all required log files (give me 2 days time, i will 
>> do that), Sorry about that, i can not post my production rabbitmq server 
>> stacktrace, and consumers.
>>
>>
>> On Friday, 30 August 2013 16:49:15 UTC+5:30, Arindam Nayak wrote:
>>>
>>> I have uploaded sample code for this. Link is - http://j.mp/rbconsumer. 
>>>  
>>>
>>> How to reproduce this --
>>>
>>> Run the program , put break points on  (Consumer.cs)
>>> 1. RestartConsumer() function start point,
>>> 2. while (isConsuming) {
>>> 3. catch (Exception exp)
>>>
>>> I have not written producer for this, when i run this, i put something 
>>> in queue(i.e. producer kind) from management UI.
>>>
>>> So , when running the program it will 1st hit (#2 while (isConsuming)), 
>>> and then introduce an exception (may be restart rabbitmq server or 
>>> something else),
>>> then it will hit "#3catch(Exception exp)", this will subsequently call 
>>> restart code, you can check how, main application exits while executing 
>>> restart code.
>>>
>>>
>>> On Thursday, 29 August 2013 17:28:35 UTC+5:30, Arindam Nayak wrote:
>>>>
>>>> I have uploaded screencast for this - link  - 
>>>> http://screencast.com/t/NG75rMlwOlH1
>>>>
>>>> On Thursday, 29 August 2013 12:48:20 UTC+5:30, Наиль Салихов wrote:
>>>>>
>>>>> Did you get any exception when trying recreate connection?
>>>>> Where you lost connection - in consumer or producer? Can you provide 
>>>>> your code? 
>>>>> Without more detail information nobody can helps you.
>>>>>
>>>>> среда, 28 августа 2013 г., 15:15:11 UTC+4 пользователь Arindam Nayak 
>>>>> написал:
>>>>>>
>>>>>> I have written a rabbitmq consumer service, which is a windows 
>>>>>> service, it constantly polls (something like while(true)) and reads queue 
>>>>>> data and process, it works fine for 4-5 days, but suddenly after that it 
>>>>>> gets detached from queue and stalls windows service until i manually 
>>>>>> restarts that windows service. I have using .net client libraries. I have 
>>>>>> also added restart code. that re creates connection , binds to queue and 
>>>>>> then listens , but that restart code does not work. When i tried to debug 
>>>>>> the service, it does not help, it stops debug process abruptly , at 
>>>>>> connection re-creation time. Please help.
>>>>>>
>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130830/759cec21/attachment.htm>


More information about the rabbitmq-discuss mailing list