private TaskStatusUpdateEvent getStatusUpdateEvent(boolean sendCounters, boolean isLast) { TezCounters counters = null; TaskStatistics stats = null; float progress = 0; if (task.hasInitialized()) { progress = task.getProgress(); // TODO HIVE-12449. Make use of progress notifications once Hive starts sending them out. // progressNotified = task.getAndClearProgressNotification(); if (sendCounters) { // send these potentially large objects at longer intervals to avoid overloading the AM counters = task.getCounters(); if (wmCounters != null && counters != null) { wmCounters.dumpToTezCounters(counters, isLast); } stats = task.getTaskStatistics(); } } return new TaskStatusUpdateEvent(counters, progress, stats, true); }
@VisibleForTesting TaskStatusUpdateEvent getStatusUpdateEvent(boolean sendCounters) { TezCounters counters = null; TaskStatistics stats = null; float progress = 0; boolean progressNotified = false; if (task.hasInitialized()) { progress = task.getProgress(); progressNotified = task.getAndClearProgressNotification(); if (sendCounters) { // send these potentially large objects at longer intervals to avoid overloading the AM counters = task.getCounters(); stats = task.getTaskStatistics(); } } return new TaskStatusUpdateEvent(counters, progress, stats, progressNotified); }
private TaskStatusUpdateEvent getStatusUpdateEvent(boolean sendCounters, boolean isLast) { TezCounters counters = null; TaskStatistics stats = null; float progress = 0; if (task.hasInitialized()) { progress = task.getProgress(); // TODO HIVE-12449. Make use of progress notifications once Hive starts sending them out. // progressNotified = task.getAndClearProgressNotification(); if (sendCounters) { // send these potentially large objects at longer intervals to avoid overloading the AM counters = task.getCounters(); if (wmCounters != null && counters != null) { wmCounters.dumpToTezCounters(counters, isLast); } stats = task.getTaskStatistics(); } } return new TaskStatusUpdateEvent(counters, progress, stats, true); }
if (eventType.equals(EventType.TASK_STATUS_UPDATE_EVENT)) { event = new TaskStatusUpdateEvent(); ((TaskStatusUpdateEvent)event).readFields(in); } else {