Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2640,9 +2640,12 @@ class MultiFileOrcPartitionReader(

override def callImpl(): (Seq[DataBlockBase], Long) = {
TrampolineUtil.setTaskContext(taskContext)
// Mark the async thread as a pool thread within the RetryFramework
RmmSpark.poolThreadWorkingOnTask(taskContext.taskAttemptId())
try {
doRead()
} finally {
RmmSpark.poolThreadFinishedForTask(taskContext.taskAttemptId())
TrampolineUtil.unsetTaskContext()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2261,6 +2261,8 @@ class MultiFileParquetPartitionReader(

override def callImpl(): (Seq[DataBlockBase], Long) = {
TrampolineUtil.setTaskContext(taskContext)
// Mark the async thread as a pool thread within the RetryFramework
RmmSpark.poolThreadWorkingOnTask(taskContext.taskAttemptId())
try {
val startBytesRead = fileSystemBytesRead()
val outputBlocks = withResource(outhmb) { _ =>
Expand All @@ -2287,6 +2289,7 @@ class MultiFileParquetPartitionReader(
// the corrupted file. But it should be ok since there is no meta pointing to that "hole"
(Seq.empty, 0)
} finally {
RmmSpark.poolThreadFinishedForTask(taskContext.taskAttemptId())
TrampolineUtil.unsetTaskContext()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,8 @@ class GpuMultiFileAvroPartitionReader(

override def callImpl(): (Seq[DataBlockBase], Long) = {
TrampolineUtil.setTaskContext(taskContext)
// Mark the async thread as a pool thread within the RetryFramework
RmmSpark.poolThreadWorkingOnTask(taskContext.taskAttemptId())
try {
val startBytesRead = fileSystemBytesRead()
val res = withResource(outhmb) { _ =>
Expand All @@ -1025,6 +1027,7 @@ class GpuMultiFileAvroPartitionReader(
val bytesRead = fileSystemBytesRead() - startBytesRead
(res, bytesRead)
} finally {
RmmSpark.poolThreadFinishedForTask(taskContext.taskAttemptId())
TrampolineUtil.unsetTaskContext()
}
}
Expand Down