spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <>
Subject [jira] [Resolved] (SPARK-3384) Potential thread unsafe Breeze vector addition in KMeans
Date Fri, 23 Jan 2015 18:55:34 GMT


Sean Owen resolved SPARK-3384.
    Resolution: Not a Problem

Given the discussion, I do not see evidence that there is a problem in the code at this point.

> Potential thread unsafe Breeze vector addition in KMeans
> --------------------------------------------------------
>                 Key: SPARK-3384
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>            Reporter: RJ Nowling
> In the KMeans clustering implementation, the Breeze vectors are accumulated using +=.
 For example,
>  This is potentially a thread unsafe operation.  (This is what I observed in local testing.)
 I suggest changing the += to + -- a new object will be allocated but it will be thread safe
since it won't write to an old location accessed by multiple threads.
> Further testing is required to reproduce and verify.

This message was sent by Atlassian JIRA

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

View raw message