(sorry, i meant THROW a NPE, not " return a null). Big difference of course !
On Thu, May 22, 2014 at 1:36 PM, Jay Vyas <jayunit...@gmail.com> wrote: > Hi hadoop ... Is there a reason why line 220, below, should ever return > null when > being called through the code path of job.getCounters() ? > > It appears that there could be some indirection involving RPCs, etc, so im > thinking its best to ask before I attempt to trace the call. > > 217 @Override > 218 public GetCountersResponse getCounters(GetCountersRequest request) > 219 throws IOException { > 220 JobId jobId = request.getJobId(); > 221 Job job = verifyAndGetJob(jobId); > 222 GetCountersResponse response = > recordFactory.newRecordInstance(GetCountersResponse.class); > 223 response.setCounters(TypeConverter.toYarn(job.getAllCounters())); > 224 return response; > 225 } > > > -- > Jay Vyas > http://jayunit100.blogspot.com > -- Jay Vyas http://jayunit100.blogspot.com