[ 
https://issues.apache.org/jira/browse/SPARK-45776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yang Jie updated SPARK-45776:
-----------------------------
    Description: 
{code:java}
def unregisterShuffle(shuffleId: Int): Unit = {
    shuffleStatuses.remove(shuffleId).foreach { shuffleStatus =>
      // SPARK-39553: Add protection for Scala 2.13 due to 
https://github.com/scala/bug/issues/12613
      // We should revert this if Scala 2.13 solves this issue.
      if (shuffleStatus != null) {
        shuffleStatus.invalidateSerializedMapOutputStatusCache()
        shuffleStatus.invalidateSerializedMergeOutputStatusCache()
      }
    }
  } {code}
This issue has been fixed in Scala 2.13.9.

> Remove the defensive null check added in SPARK-39553.
> -----------------------------------------------------
>
>                 Key: SPARK-45776
>                 URL: https://issues.apache.org/jira/browse/SPARK-45776
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> {code:java}
> def unregisterShuffle(shuffleId: Int): Unit = {
>     shuffleStatuses.remove(shuffleId).foreach { shuffleStatus =>
>       // SPARK-39553: Add protection for Scala 2.13 due to 
> https://github.com/scala/bug/issues/12613
>       // We should revert this if Scala 2.13 solves this issue.
>       if (shuffleStatus != null) {
>         shuffleStatus.invalidateSerializedMapOutputStatusCache()
>         shuffleStatus.invalidateSerializedMergeOutputStatusCache()
>       }
>     }
>   } {code}
> This issue has been fixed in Scala 2.13.9.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to