spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shixiong Zhu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-21188) releaseAllLocksForTask should synchronize the whole method
Date Thu, 29 Jun 2017 23:04:00 GMT

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

Shixiong Zhu resolved SPARK-21188.
----------------------------------
       Resolution: Fixed
         Assignee: Feng Liu
    Fix Version/s: 2.3.0

> releaseAllLocksForTask should synchronize the whole method
> ----------------------------------------------------------
>
>                 Key: SPARK-21188
>                 URL: https://issues.apache.org/jira/browse/SPARK-21188
>             Project: Spark
>          Issue Type: Bug
>          Components: Block Manager, Spark Core
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Feng Liu
>            Assignee: Feng Liu
>             Fix For: 2.3.0
>
>
> Since the objects readLocksByTask, writeLocksByTask and infos are coupled and supposed
to be modified by other threads concurrently, all the read and writes of them in the releaseAllLocksForTask
method should be protected by a single synchronized block. The fine-grained synchronization
in the current code can cause some test flakiness.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message