[
https://issues.apache.org/jira/browse/GEODE-5261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16494373#comment-16494373
]
ASF subversion and git services commented on GEODE-5261:
--------------------------------------------------------
Commit 8aff9249510a7e30bfbcf2ed03f191357b0dbf9a in geode's branch
refs/heads/develop from [~bschuchardt]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=8aff924 ]
GEODE-5261 - Add a test for connection-pool prefill during shutdown
Refactored ConnectionFactoryImpl to allow it to be unit tested.
Added a unit test to prove that createClientToServerConnection(Set) throws a
CancelException if the pool is shutting down.
> Add a test for connection-pool prefill during shutdown
> ------------------------------------------------------
>
> Key: GEODE-5261
> URL: https://issues.apache.org/jira/browse/GEODE-5261
> Project: Geode
> Issue Type: Test
> Components: client/server
> Reporter: Bruce Schuchardt
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In some performance tests we saw suspect strings with PoolCancelledExceptions
> in GemFire. This was fixed when GemFire transitioned to open-source but
> no-one added a test to ensure that it behaved properly. Let's add that test.
> {noformat}
> com.gemstone.gemfire.distributed.PoolCancelledException: Pool pool is not
> available
> at
> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.authenticateIfRequired(ConnectionFactoryImpl.java:177)
> at
> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:139)
> at
> com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:252)
> at
> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.prefillConnection(ConnectionManagerImpl.java:796)
> at
> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl.prefill(ConnectionManagerImpl.java:739)
> at
> com.gemstone.gemfire.cache.client.internal.pooling.ConnectionManagerImpl$PrefillConnectionsTask.run2(ConnectionManagerImpl.java:891)
> at
> com.gemstone.gemfire.cache.client.internal.PoolImpl$PoolTask.run(PoolImpl.java:1260)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)