SPARK-2621. Update task InputMetrics incrementally