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

Avoid retries for non-HA function execution

    XMLWordPrintableJSON

Details

    Description

      GIVEN a cluster with 3 servers and 1 locator
      AND a PartitionedRegion with redundant-copies="1"
      AND a user-defined Function with isHA=false
      AND a geode-native client with a pool with single-hop enabled and retry attempts set to 2
      WHEN execution fails due to a connectivity issue/connection timeout/internal cluster error
      THEN function is retried twice


      Additional information. The function is retried at the network code layer, and given whenever there is a timeout/connectivity error, the BSL is removed from the ClientMetadataService, whenever retries happen, you might get a InternalFunctionInvocationTargetException exception thrown indicating: 

      Multiple target nodes found for single hop operation 

      Also, have into account that Java client API behaviour never retries a Function Execution if isHA=false for that function, and whenever isHA=true, the function is retried but on the function execution logic and not at the networking layer.

       

      Attachments

        Issue Links

          Activity

            People

              gaussianrecurrence Mario Salazar de Torres
              gaussianrecurrence Mario Salazar de Torres
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: