@@ -210,19 +210,19 @@ public void write(Iterator<Product2<K, V>> records) throws IOException {
210210 } else {
211211 lenDistribution [8 ]++;
212212 }
213- String [] ranges = {"[0, 1k)" , "[1k, 10k)" , "[10k, 100k)" , "[100k, 1m)" , "[1m, 10m)" ,
214- "[10m, 100m)" , "[100m, 1g)" , "[1g, 10g)" , ">10g" };
215- String [] rangesAndDistribute = new String [9 ];
216- for (int j = 0 ; j < 9 ; j ++) {
217- rangesAndDistribute [j ] = ranges [j ] + ":" + lenDistribution [j ];
218- }
219- logger .debug ("For task {}.{} in stage {} (TID {}), the block sizes in MapStatus are " +
220- "inaccurate (average is {}, {} blocks underestimated, size of underestimated is {})," +
221- " distribution is {}." , taskContext .partitionId (), taskContext .attemptNumber (),
222- taskContext .stageId (), taskContext .taskAttemptId (), hc .getAvgSize (),
223- underestimatedBlocksNum , underestimatedBlocksSize ,
224- String .join (", " , rangesAndDistribute ));
225213 }
214+ String [] ranges = {"[0, 1k)" , "[1k, 10k)" , "[10k, 100k)" , "[100k, 1m)" , "[1m, 10m)" ,
215+ "[10m, 100m)" , "[100m, 1g)" , "[1g, 10g)" , ">10g" };
216+ String [] rangesAndDistribute = new String [9 ];
217+ for (int j = 0 ; j < 9 ; j ++) {
218+ rangesAndDistribute [j ] = ranges [j ] + ":" + lenDistribution [j ];
219+ }
220+ logger .debug ("For task {}.{} in stage {} (TID {}), the block sizes in MapStatus are " +
221+ "inaccurate (average is {}, {} blocks underestimated, size of underestimated is {})," +
222+ " distribution is {}." , taskContext .partitionId (), taskContext .attemptNumber (),
223+ taskContext .stageId (), taskContext .taskAttemptId (), hc .getAvgSize (),
224+ underestimatedBlocksNum , underestimatedBlocksSize ,
225+ String .join (", " , rangesAndDistribute ));
226226 }
227227 }
228228 }
0 commit comments