Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-4917

WorkerContext.execute() should throw TransactionFailureException

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: API, App Fabric, Datasets
    • Labels:
    • Rank:
      1|hzy5wv:

      Description

      Unlike Transactional.execute(), this method calls Throwables.propagate() and thus wraps any exception into a RuntimeException. That makes it very difficult for user code to determine the cause of failure.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Neumann
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: