calling GearmanJobResult.jobSucceeded() for a failed job incorrectly returns true

Bug #511489 reported by Eric Lambert on 2010-01-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman Java
High
Eric Lambert

Bug Description

The Job Result created when a WORK_FAIL event is received incorrectly sets the job success value to true

            case WORK_FAIL:
                LOG.log(Level.FINER, "job " + this + " has received a work " +
                        "fail event");
                validateJobHandle(event.getDataComponentValue(
                        GearmanPacket.DataComponentName.JOB_HANDLE));
                jobResult = jobResult.addJobResult(
                        new GearmanJobResultImpl(handle, true, null, null, null,
                        -1, -1));
                isComplete = true;
                break;

Eric Lambert (elambert) on 2010-01-23
Changed in gearman-java:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Eric Lambert (elambert)
importance: Critical → High
milestone: none → 0.04
Eric Lambert (elambert) on 2010-01-23
Changed in gearman-java:
status: Confirmed → Fix Committed
Eric Lambert (elambert) on 2010-09-10
Changed in gearman-java:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers