dev@grizzly.java.net

Re: Leader-follower IOStrategy doesn't work

From: Bongjae Chang <bongjae.chang_at_gmail.com>
Date: Wed, 30 Nov 2011 14:55:59 +0900

It works fine.

Thanks!

Regards,
Bongjae Chang

On 11/30/11 12:15 AM, "Oleksiy Stashok" <oleksiy.stashok_at_oracle.com> wrote:

>fixed.
>
>http://java.net/jira/browse/GRIZZLY-1131
>
>Thanks!
>
>WBR,
>Alexey.
>
>On 11/29/2011 01:59 PM, Bongjae Chang wrote:
>> Hi,
>>
>> When I tried to run the latest Grizzly v2 with leader-follower
>> IOStrategy for benchmarking, I found it didn't work correctly.
>>
>> At first, core size's selector threads existed but selector threads
>> would decrease from core size to 0 whenever a read or write IO event
>> would be arrived.
>>
>> Finally only worker threads existed.
>>
>> It looks like side-effect of
>> rev.198925ba643fc8ce2e0e25bd3ef8bc1ab43d155e "+ fix SafeFuture recycle
>> + final fix for SelectorRunner start/stop".
>>
>> Though SelectorRunner should be re-run by leader-follower logic,
>> SelectorRunner.java's run() method is not executed properly because of
>> runnerThreadActivityCounter's state.
>>
>> Could you please review it?
>>
>> Thanks.
>>
>> Regards,
>> Bongjae Chang
>