[ https://issues.apache.org/jira/browse/TEZ-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Pivovarov updated TEZ-1632: ------------------------------------- Attachment: TEZ-1632.1.patch TEZ-1632.1.patch Sleep 100 ms N times until mockApp.getContext().getCurrentDAG() returns non-null value. For me N is 2-3 (CentOS on VirtualBox) > NPE at TestPreemption.testPreemptionWithoutSession line 105 > ----------------------------------------------------------- > > Key: TEZ-1632 > URL: https://issues.apache.org/jira/browse/TEZ-1632 > Project: Apache Tez > Issue Type: Bug > Reporter: Alexander Pivovarov > Assignee: Alexander Pivovarov > Attachments: TEZ-1632.1.patch > > > Some issues with multithreading > mockApp.getContext().getCurrentDAG() returns non-null value after 200-300ms. > {code} > $ mvn clean package > ... > Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.566 sec <<< > FAILURE! > testPreemptionWithoutSession(org.apache.tez.dag.app.TestPreemption) Time > elapsed: 0.182 sec <<< ERROR! > java.lang.NullPointerException: null > at > org.apache.tez.dag.app.TestPreemption.testPreemptionWithoutSession(TestPreemption.java:105) > Running org.apache.tez.client.TestLocalMode > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)