Skip to content

Exception in activity function fails orchestrator with non-deterministic error #125

@anthonychu

Description

@anthonychu

Describe the bug
An exception in an activity results in a non-deterministic error.

Investigative information

  • Durable Functions extension version: 2.0.0
  • durable-functions npm module version: 1.3.1
  • Language (JavaScript/TypeScript) and version: JS
  • Node.js version: 10.16.3

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo: https://github.com/anthonychu/test-durable-js
  2.  npm i
     func extensions install
     cp local.settings.SAMPLE.json local.settings.json
     # Add storage connection string to local.settings.json
     func start
  3. Call http://localhost:7071/api/orchestrators/OrchestratorWithBadActivity to start the orchestrator that calls an activity that throws an exception.
  4. Get the statusQueryGetUri in the response and use it to check the status. I think it should show the actual error, but instead it shows a non-deterministic error:
    {
      "name": "OrchestratorWithBadActivity",
      "instanceId": "4db326c0a2d34fdbad47cf134e6ddf1c",
      "runtimeStatus": "Failed",
      "input": null,
      "customStatus": null,
      "output": "Non-Deterministic workflow detected: TaskScheduledEvent: 0 TaskScheduled BadActivity",
      "createdTime": "2019-11-20T22:27:37Z",
      "lastUpdatedTime": "2019-11-20T22:27:38Z"
    }

@ConnorMcMahon @cgillum

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Priority 1 itembugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions