You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2020/07/10 18:34:00 UTC

[jira] [Resolved] (SPARK-31592) bufferPoolsBySize in HeapMemoryAllocator should be thread safe

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

Sean R. Owen resolved SPARK-31592.
----------------------------------
    Resolution: Cannot Reproduce

> bufferPoolsBySize in HeapMemoryAllocator should be thread safe
> --------------------------------------------------------------
>
>                 Key: SPARK-31592
>                 URL: https://issues.apache.org/jira/browse/SPARK-31592
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.4.3
>            Reporter: Yunbo Fan
>            Priority: Major
>
> Currently, bufferPoolsBySize in HeapMemoryAllocator uses a Map type whose value type is LinkedList.
> LinkedList is not thread safe and may hit the error below
> {code:java}
> java.util.NoSuchElementExceptionException
>     at java.util.LinkedList.removeFirst(LinkedList.java:270) 
>     at java.util.LinkedList.remove(LinkedList.java:685)
>     at org.apache.spark.unsafe.memory.HeapMemoryAllocator.allocate(HeapMemoryAllocator.java:57){code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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