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

Exceptions thrown from Functions are inconsistently wrapped with FunctionException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • functions
    • None

    Description

      I wrote some tests for how exceptions throw within a function are returned to the executor of the function.

      What I'm seeing is that how the function is returned varies based on the topology and region type used. Specifically, in almost all cases an exception thrown from within a Function is wrapped in a FunctionException. But when using onRegion with a partitioned region from an accessor, the exception is not wrapped in a FunctionException but is instead thrown directly.

      Exceptions should be handled consistently. Since most cases seem to wrap the exception in a FunctionException, the PR accessor case probably should too.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              upthewaterspout Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: