Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6677

Function with timeout, isHA==true and retries can lead to issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • None

    Description

      A user can set `isHA() == true`, retries == -1, and `CLIENT_FUNCTION_TIMEOUT`.

      The timeout is currently implemented as per attempt.   The default is 10000 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

       

      Attachments

        Issue Links

          Activity

            People

              burcham Bill Burcham
              charliemblack Charlie Black
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 50m
                  4h 50m