Comments (7)
The client and workers have a "timeout period." They will not try to reconnect
for that period of time. This is an attempt to avoid wasting resources, trying
to reconnect on every submission. Look into setting the lost connection policy
(http://java-gearman-service.googlecode.com/svn/javadoc/org/gearman/GearmanJobSe
rverPool.html#setLostConnectionPolicy(org.gearman.GearmanLostConnectionPolicy))
and setting the reconnect period
(http://java-gearman-service.googlecode.com/svn/javadoc/org/gearman/GearmanJobSe
rverPool.html#setReconnectPeriod(long, java.util.concurrent.TimeUnit))
I'm 98% sure this is working correctly. However, I'm going to do a little
testing on this functionality tonight, just to see if I can reproduce anything.
If you could attach some source, it would be greatly appreciated.
Original comment by [email protected]
on 7 Mar 2012 at 7:14
from java-gearman-service.
The links did not turn out correctly...
Look into the following methods:
Setting the lost connection policy:
GearmanWorker#setLostConnectionPolicy(GearmanLostConnectionPolicy policy)
GearmanClient#setLostConnectionPolicy(GearmanLostConnectionPolicy policy)
Setting the default reconnect period:
GearmanWorker#setReconnectPeriod(long time, TimeUnit unit)
GearmanClient#setReconnectPeriod(long time, TimeUnit unit)
Original comment by [email protected]
on 7 Mar 2012 at 7:17
from java-gearman-service.
I'm able to reproduce this issue. I'll try to get a fix out as soon as possible.
Original comment by [email protected]
on 8 Mar 2012 at 4:11
- Changed state: Accepted
from java-gearman-service.
This issue was closed by revision r93.
Original comment by [email protected]
on 8 Mar 2012 at 7:00
- Changed state: Fixed
from java-gearman-service.
I've just released v0.5.2. Give that a shot, and please let me know if you find
any more issues.
Thanks, omry. I appreciate you bringing this issue to my attention :)
Original comment by [email protected]
on 8 Mar 2012 at 7:10
from java-gearman-service.
going to try that out just now :).
thanks!
I will keep testing, but I`m likely to switch over anyway as it seems that you
are actually developing this, unlike the owner of the other project which
kinda' gave up.
Original comment by [email protected]
on 8 Mar 2012 at 9:18
from java-gearman-service.
Okay, now I consistently getting the correct error in my GearmanSubmitHandler
:FAILED_TO_CONNECT
you mentioned the reconnect policy.
does that apply to workers AND clients?
because you said clients should reconnect automatically, but I don't think its
the behavior I am seeing.
if I am not trying to re-submit the job, I am seeing a single
FAILED_TO_CONNECT, and then nothing.
Original comment by [email protected]
on 8 Mar 2012 at 9:32
from java-gearman-service.
Related Issues (20)
- Suspected memory leak HOT 8
- java.lang.NullPointerException HOT 5
- v0.6.4 not properly disconnecting HOT 1
- The gearman worker behaves incorectly when a function is removed and added from within the worker HOT 1
- Connection lost, fail to reconnect HOT 22
- Get the job handle from the GearmanFunction HOT 3
- Worker is not closing connections on shutdown. HOT 1
- NullPointerException HOT 2
- Possible Memory Leak HOT 1
- Gearman worker stopped connecting to server HOT 1
- GearmanClient timeout missing HOT 2
- Gearman shutdown issue
- GearmanJobReturnImpl.java poll(timeout,timeunit) function fail,
- After timeout on GRAB_JOB no futher jobs are processed and connection is dropped every 20 seconds HOT 4
- Worker disconnects 30 sec after PRE_SLEEP HOT 10
- exported .jar with 'echo' example produces errors HOT 4
- Null pointer exception when trying to unregister a function
- java.util.ConcurrentModificationException on the server side
- fake workers on gearman server HOT 1
- Gearman workers wont connnect to the daemon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-gearman-service.