One Gearmand restart leads to worker to lose connection to all servers

Bug #655812 reported by Miguel Simões on 2010-10-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman Java
Eric Lambert

Bug Description

When you are working with more then one server associated with the GearmanWorker, if one of the servers terminates the connection, the Worker tries to shutdown it self instead making it loose the connection to all servers instead of only termating the connection on the server that lost the connection.

Miguel Simões (miguel-simoes) wrote :

Terrible english there ^^

When you add more then one server to the GearmanWorker, when one of the gearmand shutsdown, the GearmanWorker kills himself and looses the connection to all servers registered, instead it should just shutdown the connection to the gearmand that lost the connection.

PS: this is related with the issue of restoring the connection to a gearmand that has, for example, a restart and lost connection for a brief period.

Eric Lambert (elambert) wrote :

Hi Miguel:

Your description makes sense to me. Will take a look at this.

Thanks for filling the bug.



Changed in gearman-java:
assignee: nobody → Eric Lambert (elambert)
importance: Undecided → High
Eric Lambert (elambert) wrote :

It looks like this is cause by the sess.getSelectionKey().interestOps(interestOps) in throwing an unchecked exception (IllegalStateException). There are some other bugs relating to how the worker deals with dropped exceptions which I plan to fix in 0.05, so will address this issue as well.

Changed in gearman-java:
milestone: none → 0.05
status: New → Confirmed
Eric Lambert (elambert) on 2011-01-28
Changed in gearman-java:
status: Confirmed → In Progress
Matt Fischer (mfisch) on 2012-04-08
summary: - One Gearmand restart leads to worker to loose connection to all servers
+ One Gearmand restart leads to worker to lose connection to all servers
Eric Lambert (elambert) on 2012-09-25
Changed in gearman-java:
milestone: 0.05 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers