[ 
https://issues.apache.org/jira/browse/GEODE-6762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888119#comment-16888119
 ] 

ASF subversion and git services commented on GEODE-6762:
--------------------------------------------------------

Commit 846b9c277e37ae03fe3445c2fdd1a3a43c67e102 in geode's branch 
refs/heads/develop from mivanac
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=846b9c2 ]

GEODE-6762: Prevent unnecessary PartitionedRegion callback events




> BucketRegion ops do not always need to call createEventForPR
> ------------------------------------------------------------
>
>                 Key: GEODE-6762
>                 URL: https://issues.apache.org/jira/browse/GEODE-6762
>             Project: Geode
>          Issue Type: Improvement
>          Components: core
>            Reporter: Darrel Schneider
>            Assignee: Mario Ivanac
>            Priority: Major
>              Labels: needs-review, performance, pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The BucketRegion class has multiple places in the after op event delivery 
> code that call createEventForPR and then ask that callbacks be invoked for 
> that event on the partitioned region.
> But we will only have callbacks to invoke if we are a cache server that has 
> clients registered for events or the partitioned region has a cache listener, 
> We could prevent this optimization by doing some cheap checks to see if any 
> callbacks are possible before calling createEventForPR.
> Some code that does this for BucketRegion put can be found here:
> f7a824c62a57a5039b816a4a8b8b4d8c1c1fcb86 and here: 
> f568960235bda994bd7c6d0c575567ed2ccb10a5



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to