You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Mario Ivanac (JIRA)" <ji...@apache.org> on 2019/07/09 06:22:00 UTC

[jira] [Updated] (GEODE-6762) BucketRegion ops do not always need to call createEventForPR

     [ https://issues.apache.org/jira/browse/GEODE-6762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Ivanac updated GEODE-6762:
--------------------------------
    Labels: performance pull-request-available  (was: needs-review performance pull-request-available)

> 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: performance, pull-request-available
>          Time Spent: 1.5h
>  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.3#76005)