[
https://issues.apache.org/jira/browse/GEODE-8543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17312476#comment-17312476
]
ASF subversion and git services commented on GEODE-8543:
--------------------------------------------------------
Commit 391a84f8b212147f78b22d68bafe6ee78464d1ba in geode-native's branch
refs/heads/develop from Jakov Varenina
[ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=391a84f ]
GEODE-8543: Fix for uneccessary connections closure (#705)
* Test to reproduce issue
* Dont close connection to ep if CacheClosedException detected
* Added hook that checks for disconnections
* Added test hook:
- setDisconnectionTest() - activates test hook which then stores
all endpoints that are disconnected from client.
- getDisconnectedEPs() - retrives all disconnected endpoints.
* Test framework updated:
- Assign port to server using Framework::getAvailablePort() function
- Interface updated with method that retrieves server port
- made server address and port configurable in framework
- used existing counter numberOfTimesFailed() from TcrEndpoint to check
for disconnections of servers
- removed used static methods and variables
Co-authored-by: Alberto Bustamante Reyes <[email protected]>
> Client disconnects from server due to exception on other server
> ---------------------------------------------------------------
>
> Key: GEODE-8543
> URL: https://issues.apache.org/jira/browse/GEODE-8543
> Project: Geode
> Issue Type: Bug
> Components: native client
> Reporter: Alberto Bustamante Reyes
> Assignee: Jakov Varenina
> Priority: Major
> Labels: pull-request-available
>
> In ThinClientBaseDM::handleEPError when the client receives an exception from
> a given endpoint, it will mark that server dead if in the exception contains
> "java.lang.OutOfMemoryError",
> "org.apache.geode.distributed.ShutdownException" or
> "org.apache.geode.cache.CacheClosedException" ( in
> ThinClientBaseDM::unrecoverableServerError() )
> The problem is that the server causing the exception can be a different
> server than the endpoint the client is connected to. In that case,
> the client will wrongly close a connection to a working server.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)