ramesh0201 commented on a change in pull request #1701:
URL: https://github.com/apache/hive/pull/1701#discussion_r551551287



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/HiveSplitGenerator.java
##########
@@ -385,7 +387,11 @@ public HiveSplitGenerator(InputInitializerContext 
initializerContext) throws IOE
 
   @Override
   public void onVertexStateUpdated(VertexStateUpdate stateUpdate) {
-    pruner.processVertex(stateUpdate.getVertexName());
+    // pruner registers for vertex state updates after it is ready to handle 
them
+    // so we do not worry about events coming before pruner was initialized
+    if (pruner != null) {

Review comment:
       I can understand status updates are not needed when not initialized. Is 
the not null check only for safety or did we introduce any new place where we 
start assigning null values. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to