Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1414

nextTransaction can cause null pointers with the new MetricsService.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12.1
    • Fix Version/s: 1.13.0
    • Component/s: Core
    • Labels:
      None

      Description

      The reason is that request-scoped services are implemented as transaction services. Most of the time the scope of a request and the scope of a transacion are one and the same: there is just one transaction per scope. However, TransactionService#nextTransaction admits for there being multiple transactions per request.

      This bug is that the current implementation for RequestScoped does the init/close as part of the Transaction management. Instead, this should be part of the PersistenceSession#open/close (a PersistenceSession wraps a JDO session, so basically corresponds to the request).

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: