Details
Description
While testing a patch for one of the MR issues, I found TestAMWebServicesJobs & TestHSWebServicesJobs incorrectly asserting tests.
Moreover tests may fail if
index of counterGroups > #counters in a particular counterGroup
TestAMWebServicesJobs.java
for (int j = 0; j < counters.length(); j++) { JSONObject counter = counters.getJSONObject(i);
where is i is index of outer loop. It should be j instead of i.