You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2019/04/18 18:53:00 UTC

[jira] [Created] (GEODE-6670) GemFireCacheImpl.getCacheServers should not allocate a new ArrayList everytime it is called

Darrel Schneider created GEODE-6670:
---------------------------------------

             Summary: GemFireCacheImpl.getCacheServers should not allocate a new ArrayList everytime it is called
                 Key: GEODE-6670
                 URL: https://issues.apache.org/jira/browse/GEODE-6670
             Project: Geode
          Issue Type: Improvement
          Components: core
            Reporter: Darrel Schneider


The current implementation of GemFireCacheImpl.getCacheServers allocates a new ArrayList each time it is called if the cache has any cache servers that are not gateway receivers.

We should instead maintain a list of all the non-gateway cache servers (like we currently do with the "allCacheServers" list).

I saw the method called multiple times per pr put on a cache server.



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