Skip to content

Commit

Permalink
finalize/close can double close broadcast in GpuBroadcastExchangeExec
Browse files Browse the repository at this point in the history
  • Loading branch information
abellina committed Jan 13, 2023
1 parent f861823 commit c123170
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ class SerializeConcatHostBuffersDeserializeBatch(

override def close(): Unit = this.synchronized {
buffers.safeClose()
buffers = Array.empty
Option(batchInternal).foreach(_.close())
batchInternal = null
}

@scala.annotation.nowarn("msg=method finalize in class Object is deprecated")
Expand Down

0 comments on commit c123170

Please sign in to comment.