-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46896/#review131408
-----------------------------------------------------------




geode-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/gms/membership/GMSJoinLeave.java
 (line 1595)
<https://reviews.apache.org/r/46896/#comment195367>

    I still don't like this.  getUnresponsiveMembers() is used by the view 
creator to get the collection and then it proceeds to modify it multiple times. 
 I think that internally the reply processor should continue to use the 
collection directly and that getUnresponsiveMembers() should synchronize and 
return a copy of the collection.  That will result in a lot fewer objects being 
created and will keep the view-creator thread from modifying the collection 
that is internal to the reply processor.


- Bruce Schuchardt


On May 2, 2016, 10:34 p.m., Hitesh Khamesra wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/46896/
> -----------------------------------------------------------
> 
> (Updated May 2, 2016, 10:34 p.m.)
> 
> 
> Review request for geode, Bruce Schuchardt, Jianxia Chen, and Udo Kohlmeyer.
> 
> 
> Repository: geode
> 
> 
> Description
> -------
> 
> added synchronization with copyOnread
> 
> 
> Diffs
> -----
> 
>   
> geode-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/gms/membership/GMSJoinLeave.java
>  9f5648b 
> 
> Diff: https://reviews.apache.org/r/46896/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Hitesh Khamesra
> 
>

Reply via email to