Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34773

The `TransactionReaper` handler classes are not exception-safe

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.6.4, 3.7.9
    • 3.6.6, 4.0.0-rc0
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • v3.6
    • Sharding 2018-05-07
    • 45

    Description

      The TransactionReaper handler classes invariant that their finalize() method has been called, but nothing in that method's logic really requires it, nor does the TransactionReaper ensure that in any way.

      Because of this, the invariants should be removed.

      It is worth leaving the _finalized variables around to invariant that finalize() is only called once, but it doesn't need to be an AtomicBool since it is only used from a single thread.

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: