Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-956

Metrics is not using an isolated transaction

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Done
    • Icon: Major Major
    • Recycle Bin
    • 1.0.0-M2
    • Metrics
    • None

      It appears that the metrics is not using a isolated transaction.

      Discussion: Should it be using an isolated transaction, i.e. a new Hibernate session than the one used by the code servicing the request?

      Observations: Mapping errors in other parts of the code were triggering updates on dirty objects. The code servicing the request were purely read only. The metrics starts a write transaction picking up the same session and triggered a flush of objects unrelated to metrics processing. One one hand this identified some problems in other parts of the application. However it is not clear if the metrics should be triggering updates on unrelated objects.

              Unassigned Unassigned
              wilhelmi Nathan Wilhelmi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: