File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/src/main/java/org/apache/spark/util/collection/unsafe/sort Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,9 @@ private UnsafeExternalSorter(
145145 // Use getSizeAsKb (not bytes) to maintain backwards compatibility for units
146146 // this.fileBufferSizeBytes = (int) conf.getSizeAsKb("spark.shuffle.file.buffer", "32k") * 1024;
147147 this .fileBufferSizeBytes = 32 * 1024 ;
148- this .writeMetrics = taskContext .taskMetrics ().shuffleWriteMetrics ();
148+ // The spill metrics are stored in a new ShuffleWriteMetrics, and then discarded (this fixes SPARK-16827).
149+ // TODO: Instead, separate spill metrics should be stored and reported (tracked in SPARK-3577).
150+ this .writeMetrics = new ShuffleWriteMetrics ();
149151
150152 if (existingInMemorySorter == null ) {
151153 this .inMemSorter = new UnsafeInMemorySorter (
You can’t perform that action at this time.
0 commit comments