Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/21114
  
    can we do this?
    ```
    var acc = ...
    ... // launch a long running job
    val accId = acc.getId
    acc = null
    gc
    ... // job finished
    ```
    
    accumulator is created by users so we have to be prepared for any 
situations. That's why we use weak reference at the first place. 


---

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

Reply via email to