We do not check for the exceptional case of having both hadoop1 and hadoop2 user names blank. It is ok if we believe that will never happen, but I see that we do check for this exceptional case in JobHistoryService.java