dev@grizzly.java.net

Leader-follower IOStrategy doesn't work

From: Bongjae Chang <bongjae.chang_at_gmail.com>
Date: Tue, 29 Nov 2011 21:59:06 +0900

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