Comment 14 for bug 689330

Revision history for this message
Eric Lambert (elambert) wrote : Re: [Bug 689330] Re: NullPointerException thrown from GearmanClientImpl.shutdownNow

Great, thanks for checking

On Jan 17, 2011, at 2:18 AM, Omry Yadan <email address hidden> wrote:

> you updated my reconnect bug branch as well (do you need to at all?)
> if this is your diff:
>
> - sessionsMap = new HashMap<SelectionKey, GearmanJobServerSession>();
> + sessionsMap = new Hashtable<SelectionKey, GearmanJobServerSession>();
>
> that it appears to have worked.
> no more npes from the lib when you get too many open files.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/689330
>
> Title:
> NullPointerException thrown from GearmanClientImpl.shutdownNow
>
> Status in Gearman Java:
> In Progress
>
> Bug description:
> While stress testing my gearman worker, I bumped into the following
> exceptions:
>
> 1. RejectedExecutionException with the message "No servers registered with client"
> if I catch this one and try to close the client in order to start a new one and retry, I get:
>
> 2.java.lang.NullPointerException
> at org.gearman.client.GearmanClientImpl.shutdownNow(GearmanClientImpl.java:482)
> at org.gearman.client.GearmanClientImpl.shutdown(GearmanClientImpl.java:454)
>
>