ChenSammi commented on PR #8360: URL: https://github.com/apache/ozone/pull/8360#issuecomment-2862654840
> I updated the data. Interesting thing is this time roundrobin-sync is better than roundrobin. > >  It looks like this statement " nextVolumeIndex.compareAndSet(nextIndex, currentVolumeIndex);" in RoundRobinVolumeChoosingPolicy is the reason why synchronized has better performance for RoundRobinVolumeChoosingPolicy. Once nextVolumeIndex.compareAndSet is replaced with nextVolumeIndex.set, synchronized will have the similar performance as without synchronized. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org