[ https://issues.apache.org/jira/browse/PIG-4967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiang Li updated PIG-4967: -------------------------- Attachment: PIG-4967-2.patch [~daijy], I uploaded patch 2 to use a try block to surround log.debug(). - If job status is not null, it calls ControlledJob#toString() as before - if job status is null, the NPE will be caught and a warning is logged UT (test-commit) has no failure and I also tested the patch on a cluster with Pig 0.15.0. Could you please review at your earliest convenience? > NPE in PigJobControl.run() when job status is null > -------------------------------------------------- > > Key: PIG-4967 > URL: https://issues.apache.org/jira/browse/PIG-4967 > Project: Pig > Issue Type: Bug > Affects Versions: 0.15.0 > Reporter: Xiang Li > Assignee: Xiang Li > Priority: Critical > Fix For: 0.16.0 > > Attachments: PIG-4967-0.patch, PIG-4967-1.patch, PIG-4967-2.patch > > > {code} > [JobControl] ERROR org.apache.pig.backend.hadoop23.PigJobControl - Error > while trying to run jobs. > java.lang.NullPointerException > at org.apache.hadoop.mapreduce.Job.getJobName(Job.java:426) > at > org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.toString(ControlledJob.java:93) > at java.lang.String.valueOf(String.java:2982) > at java.lang.StringBuilder.append(StringBuilder.java:131) > at > org.apache.pig.backend.hadoop23.PigJobControl.run(PigJobControl.java:182) > at java.lang.Thread.run(Thread.java:745) > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher$1.run(MapReduceLauncher.java:276) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)