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

Bug #511489 reported by Eric Lambert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman Java
Fix Released
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)
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)
Changed in gearman-java:
status: Confirmed → Fix Committed
Eric Lambert (elambert)
Changed in gearman-java:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.