Subitting a Background Job does not fail after gearman has been closed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman Java |
Fix Released
|
Medium
|
Eric Lambert |
Bug Description
In GearmanClientImpl in method " public <T> Future<T> submit(Callable<T> task) " - subitting a backgroynd job
the code does not throw an error when gearman is down, It return a (Future<T> job) instead and just logs the IOException occured.
So there is no way to tell if gearman is up or down because this always succeds.
Reproducing the situation
---------------
Gearm is up
Client connects to Gearman
We Shitdown gearman
Client submits a background job
try {
GearmanJob job = GearmanJobImpl.
functionT
requestPa
uniqueId);
f = client.submit(job);
} catch (Exception e) {
comResponse
comResponse
return comResponse;
}
Code does not reach the catch statement
Related branches
description: | updated |
summary: |
- Subitting a Background Job does not fail after gearmnah has been closed + Subitting a Background Job does not fail after gearman has been closed |
Changed in gearman-java: | |
importance: | Undecided → Medium |
assignee: | nobody → Eric Lambert (elambert) |
Changed in gearman-java: | |
status: | New → Confirmed |
Changed in gearman-java: | |
status: | Confirmed → Fix Committed |
Changed in gearman-java: | |
status: | Fix Committed → Fix Released |
In theory this scenario should result in a rejectedExecuti onException, will take a look