private void computeStatistics(
TaskInProgress tip, String host, long inputBytes) {
int level = this.maxLevel;
String[] splitLocations = tip.getSplitLocations();
if (splitLocations.length > 0) {
Node tracker = topologyCache.getNode(host);
// find the right level across split locations
for (String local : splitLocations) {
Node datanode = topologyCache.getNode(local);
int newLevel = this.maxLevel;
if (tracker != null && datanode != null) {
newLevel = getMatchingLevelForNodes(tracker, datanode, maxLevel);
}
if (newLevel < level) {