abstractdog commented on PR #6987:
URL: https://github.com/apache/hive/pull/6987#issuecomment-7409456281

   > > Update the PR to include all Terminal failure state: FAILED, ERROR, 
KILLED.
   > 
   > thanks! still, I don't get something, just looking at the comment and rows:
   > 
   > 
https://github.com/apache/hive/blob/92bb152fec71ad724ae6cc854b30eedfe58af1fb/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/monitoring/TezProgressMonitor.java#L106-L120
   > 
   > 
   > this makes me think that every single job progress update also uses the 
vertex status to render the actual vertex's status, how could we theoretically 
fill that map only in terminal states?
   
   oh I think I just realized, it's only used in KILLED state, the rest is 
figure out somehow else:
   
https://github.com/apache/hive/blob/92bb152fec71ad724ae6cc854b30eedfe58af1fb/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/monitoring/TezProgressMonitor.java#L275
   
   I think if you share the same shouldFetch...() method between the two 
relevant places, that would make the code clear


-- 
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.

To unsubscribe, e-mail: [email protected]

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