[hadoop]MAPREDUCE-4195 Report

1. Symptom

Wrong computation

With invalid queueName request param, jobqueue_details.jsp shows NPE

1.1 Severity

critical

1.2 Was there exception thrown?

Yes

ERROR org.mortbay.log: /jobqueue_details.jsp

java.lang.NullPointerException

at org.apache.hadoop.mapred.jobqueue_005fdetails_jsp._jspService(jobqueue_005fdetails_jsp.java:71)

1.2.1 Were there multiple exceptions?

No

1.3 Scope of the failure

Single job request

2. How to reproduce this failure

2.0 Version

1.0.1

2.1 Configuration

1 Webapp

2.2 Reproduction procedure

submit queueName as null in the /jobqueue_details.jsp webpage

2.2.1 Timing order

NA

2.2.2 Events order externally controllable?

Yes

2.3 Can the logs tell how to reproduce the failure?

Yes

2.4 How many machines needed?

1

3. Diagnosis procedure

3.1 Detailed Symptom (where you start)

The jobqueue_details.jsp throws a NullPointerException.

3.2 Backward inference

When user requests with a null parameter in the Web API, a “null” variable will be injected to the backend and trigger a nullPointerException.

4. Root cause

Webapp does not check special case of the user submitted data.

4.1 Category:

Incorrect exception handling

5. Fix

5.1 How?

Add exception handling procedure to the schedInfo is null.