Hi Ishara,

This is great !!!


On Mon, Sep 9, 2013 at 12:30 AM, Ishara Premadasa <[email protected]> wrote:

>
> Hi Malinga,
>
> On Fri, Aug 30, 2013 at 2:42 PM, Malinga Purnasiri <[email protected]>wrote:
>
>> hi Ishara,
>>
>> As i remember since per message count increment to DB kill the
>> performance of MB considerably; we all thought of removing it for the
>> moment. With the new disruptor changes we thought of updating queue count
>> periodically (not in real-time). So i think its not good idea to depend on
>> the queue count for the purging operation. instead ..
>>
>> What if we use [1] receive(timeout). We can set the timeout to (may be) 5
>> secs.
>>
>> Any ideas ?
>>
>
> I used [1] as suggested with a timeout of 30 secs and got queue purging
> works fine. IIRC before introducing the disruptor we were unable to use
> receive(timeout) method from API due to the latency of retrieving messages
> from Queue, however the process has good speed now.
>
> With new fix when purge is clicked it will empty the Queue in blocking
> manner while a loading message is displayed and will return back after
> purging is done. Fixed and committed in r184738.
>
> Thanks!
> Ishara
>
>
>>
>> [1]
>> http://docs.oracle.com/javaee/1.4/api/javax/jms/MessageConsumer.html#receive(long)
>>
>>
>>
>>
>> On Wed, Aug 28, 2013 at 2:01 PM, Ishara Premadasa <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> Since we have removed the message counters after introducing the
>>> disruptor based message processing  for MB 2.1.1  both the above features
>>> are currently not working and we are trying to fix this. As the previous
>>> MessageWriter,  implementations from 2.1.0 are no longer used, now we don't
>>> keep message counts stored in Cassandra so the counters are always shown as
>>> zero. Due to this the current queue purge feature has too broken since it
>>> periodically checks the message counter and performs purge operation
>>> continuously till the total message count in the queue is zero.
>>>
>>> IMO we need to find an alternative way to get message counters work in
>>> the queue as the message writers are not used now. If not we may need to
>>> remove these two features from UI, since purging too depending on the
>>> counters.
>>>
>>> Thanks!
>>> Ishara
>>>
>>> --
>>> Ishara Premasada
>>> Software Engineer,
>>> WSO2 Inc. http://wso2.com/
>>> *Blog   :  http://isharapremadasa.blogspot.com/
>>> Twitter       :  https://twitter.com/ishadil
>>> Mobile       : +94 714445832*
>>>
>>>
>>>
>>
>>
>> --
>> Malinga Pathmal,
>> Technical Lead, WSO2, Inc. : http://wso2.com/
>> Phone : (+94) 715335898
>>
>
>
>
> --
> Ishara Premasada
> Software Engineer,
> WSO2 Inc. http://wso2.com/
> *Blog   :  http://isharapremadasa.blogspot.com/
> Twitter       :  https://twitter.com/ishadil
> Mobile       : +94 714445832*
>
>
>


-- 
Malinga Pathmal,
Technical Lead, WSO2, Inc. : http://wso2.com/
Phone : (+94) 715335898
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to