spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Commented] (SPARK-21188) releaseAllLocksForTask should synchronize the whole method
Date Fri, 23 Jun 2017 05:33:00 GMT


Apache Spark commented on SPARK-21188:

User 'liufengdb' has created a pull request for this issue:

> releaseAllLocksForTask should synchronize the whole method
> ----------------------------------------------------------
>                 Key: SPARK-21188
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Block Manager, Spark Core
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Feng Liu
> 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message