You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Bruce Schuchardt (JIRA)" <ji...@apache.org> on 2018/10/25 22:32:00 UTC

[jira] [Resolved] (GEODE-5922) SerialGatewaySenderQueue concurrency is poorly implemented

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

Bruce Schuchardt resolved GEODE-5922.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.8.0

Serial gateway (WAN) senders now implement better concurrency control, ensuring that operations aren't unduly delayed by unfair thread scheduling.

> SerialGatewaySenderQueue concurrency is poorly implemented
> ----------------------------------------------------------
>
>                 Key: GEODE-5922
>                 URL: https://issues.apache.org/jira/browse/GEODE-5922
>             Project: Geode
>          Issue Type: Improvement
>          Components: wan
>            Reporter: Bruce Schuchardt
>            Assignee: Bruce Schuchardt
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.8.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> This class uses synchronization on the queue to limit access to one put at a time.  Synchronization isn't a fair locking mechanism so threads can be blocked trying to add events to the queue while other more recent events get the lock and insert their events.  This causes inconsistent latency which I've observed being as long as 30 seconds, causing client connections to be shut down by the ClientHealthMonitor.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)