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

Retried findAndModify requests can slow log/profile into the wrong namespace

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.1, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0

    Description

      A variety of callers can use AutoStatsTracker who's constructor changes the namespace state of an operation.

      However, the destructor does not restore the state. Thus a retried findAndModify can log a slow query/system.profile entry under the config.image_collection namespace.

      While this is probably a subtle yet widespread problem, this ticket aims to correct the scenario just for the config.image_collection lookup in the findAndModify code paths.

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb
            daniel.gottlieb@mongodb.com Daniel Gottlieb
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: