[jira] [Commented] (GEODE-6677) Function with timeout, isHA==true and retries can lead to issues

2019-06-18 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/GEODE-6677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16866769#comment-16866769
 ] 

ASF subversion and git services commented on GEODE-6677:


Commit 1572758b30f8cccbd9ffa52edc83789c4fdab1ec in geode's branch 
refs/heads/develop from Jens Deppe
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=1572758 ]

Revert "GEODE-6677: Fix compile errors (#3715)"

This reverts commit 51d4b744cc689485676d20dc423469a29821374c.


> Function with timeout, isHA==true and retries can lead to issues
> 
>
> Key: GEODE-6677
> URL: https://issues.apache.org/jira/browse/GEODE-6677
> Project: Geode
>  Issue Type: Bug
>Reporter: Charlie Black
>Assignee: Bill Burcham
>Priority: Major
>  Labels: SmallFeature
> Fix For: 1.10.0
>
>  Time Spent: 4h 50m
>  Remaining Estimate: 0h
>
> A user can set `isHA() == true`, retries == -1, and `CLIENT_FUNCTION_TIMEOUT`.
> The timeout is currently implemented as per attempt.   The default is 1 
> ms.
> The default for retries is -1.
> With the default of -1 Geode will continually attempt to call the function 
> and ignore the expected behavior.   
>  
> The expected behavior with respect to the default of -1 that means each 
> server will be retried once and the system should throw an exception.
> From query the exception that is thrown is for system with 2 servers when the 
> query exceeds the time out and retry of -1:
> {{Exception in thread "main" 
> org.apache.geode.cache.client.ServerConnectivityException: Pool unexpected 
> socket timed out on client connection=Pooled Connection to voltron:64615: 
> Connection[voltron:64615]@1279740095 attempt=2). Server unreachable: could 
> not connect after 2 attempts}}
>  



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


[jira] [Commented] (GEODE-6677) Function with timeout, isHA==true and retries can lead to issues

2019-06-17 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/GEODE-6677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16865953#comment-16865953
 ] 

ASF subversion and git services commented on GEODE-6677:


Commit 51d4b744cc689485676d20dc423469a29821374c in geode's branch 
refs/heads/develop from Joris Melchior
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=51d4b74 ]

GEODE-6677: Fix compile errors (#3715)




> Function with timeout, isHA==true and retries can lead to issues
> 
>
> Key: GEODE-6677
> URL: https://issues.apache.org/jira/browse/GEODE-6677
> Project: Geode
>  Issue Type: Bug
>Reporter: Charlie Black
>Assignee: Bill Burcham
>Priority: Major
>  Labels: SmallFeature
>  Time Spent: 4h
>  Remaining Estimate: 0h
>
> A user can set `isHA() == true`, retries == -1, and `CLIENT_FUNCTION_TIMEOUT`.
> The timeout is currently implemented as per attempt.   The default is 1 
> ms.
> The default for retries is -1.
> With the default of -1 Geode will continually attempt to call the function 
> and ignore the expected behavior.   
>  
> The expected behavior with respect to the default of -1 that means each 
> server will be retried once and the system should throw an exception.
> From query the exception that is thrown is for system with 2 servers when the 
> query exceeds the time out and retry of -1:
> {{Exception in thread "main" 
> org.apache.geode.cache.client.ServerConnectivityException: Pool unexpected 
> socket timed out on client connection=Pooled Connection to voltron:64615: 
> Connection[voltron:64615]@1279740095 attempt=2). Server unreachable: could 
> not connect after 2 attempts}}
>  



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


[jira] [Commented] (GEODE-6677) Function with timeout, isHA==true and retries can lead to issues

2019-06-17 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/GEODE-6677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16865775#comment-16865775
 ] 

ASF subversion and git services commented on GEODE-6677:


Commit 5b6bcbfd27b9db8ea87be19c4b39de679bf350c2 in geode's branch 
refs/heads/develop from Bill Burcham
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=5b6bcbf ]

GEODE-6677: Eliminate Infinite Function Retry (#3690)

* Fix for retry with onRegion
* Fix retry with onRegion singlehop
* Fix for onServer
* DUnitTest for onRegion (singleHop, multihop), onServer
* Unit test for onRegion (singleHop, multihop), onServer


> Function with timeout, isHA==true and retries can lead to issues
> 
>
> Key: GEODE-6677
> URL: https://issues.apache.org/jira/browse/GEODE-6677
> Project: Geode
>  Issue Type: Bug
>Reporter: Charlie Black
>Assignee: Bill Burcham
>Priority: Major
>  Labels: SmallFeature
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> A user can set `isHA() == true`, retries == -1, and `CLIENT_FUNCTION_TIMEOUT`.
> The timeout is currently implemented as per attempt.   The default is 1 
> ms.
> The default for retries is -1.
> With the default of -1 Geode will continually attempt to call the function 
> and ignore the expected behavior.   
>  
> The expected behavior with respect to the default of -1 that means each 
> server will be retried once and the system should throw an exception.
> From query the exception that is thrown is for system with 2 servers when the 
> query exceeds the time out and retry of -1:
> {{Exception in thread "main" 
> org.apache.geode.cache.client.ServerConnectivityException: Pool unexpected 
> socket timed out on client connection=Pooled Connection to voltron:64615: 
> Connection[voltron:64615]@1279740095 attempt=2). Server unreachable: could 
> not connect after 2 attempts}}
>  



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


[jira] [Commented] (GEODE-6677) Function with timeout, isHA==true and retries can lead to issues

2019-04-24 Thread Charlie Black (JIRA)


[ 
https://issues.apache.org/jira/browse/GEODE-6677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16825613#comment-16825613
 ] 

Charlie Black commented on GEODE-6677:
--

As a clarification on this task.    When certain settings in Geode are set it 
is possible that the number of retries will be infinite.

Use case 1:

{{isHA returns true}}
 {{pr-single-hop-enabled=true}}
 {{retry-attempts=-1}}

Retries forever. The first attempt is to the correct server. Every other 
attempt is to a random server.   

This is incorrect we should attempt to honor the docs with the -1 setting and 
not retrying forever.

Docs:
|Number of times to retry a client request before giving up. If one server 
fails, the pool moves to the next, and so on until it is successful or it hits 
this limit. If the available servers are fewer than this setting, the pool will 
retry servers that have already failed until it reaches the limit. If this is 
set to -1, the pool tries every available server once.|


and

Use case 2:

{{isHA returns true}}
 {{pr-single-hop-enabled=true}}
 {{retry-attempts=0}}

2 attempts. The first attempt is to the correct server. The second attempt is 
to a random server.

NOTE This is incorrect behavior. It should not retry.

 

> Function with timeout, isHA==true and retries can lead to issues
> 
>
> Key: GEODE-6677
> URL: https://issues.apache.org/jira/browse/GEODE-6677
> Project: Geode
>  Issue Type: Bug
>Reporter: Charlie Black
>Assignee: Bill Burcham
>Priority: Major
>  Labels: SmallFeature
>
> A user can set `isHA() == true`, retries == -1, and `CLIENT_FUNCTION_TIMEOUT`.
> The timeout is currently implemented as per attempt.   The default is 1 
> ms.
> The default for retries is -1.
> With the default of -1 Geode will continually attempt to call the function 
> and ignore the expected behavior.   
>  
> The expected behavior with respect to the default of -1 that means each 
> server will be retried once and the system should throw an exception.
> From query the exception that is thrown is for system with 2 servers when the 
> query exceeds the time out and retry of -1:
> {{Exception in thread "main" 
> org.apache.geode.cache.client.ServerConnectivityException: Pool unexpected 
> socket timed out on client connection=Pooled Connection to voltron:64615: 
> Connection[voltron:64615]@1279740095 attempt=2). Server unreachable: could 
> not connect after 2 attempts}}
>  



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