Uploaded image for project: 'Percona Server for MongoDB'
  1. Percona Server for MongoDB
  2. PSMDB-600

Fix leak of dhandle session_inuse counter in __evict_walk through 'error' early loop exit logic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.19-12, 4.2.7-7, 3.6.18-6.0
    • Component/s: None
    • Labels:
      None
    • Needs Review:
      Yes

      Description

      In __evict_walk, the dhandle session_inuse counter is increased and decreased to walk the tree but in case of errors, the code jumps over the code that decreases the counter and basically leaves the dhandle as in-use so it never gets deleted during sweeps.

      This patch adds a fix to decrease the counter even in case of errors when the config dh_evict_walk_leak_fix is enabled.

      https://github.com/apang-ns/mongo/pull/11

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              igor.solodovnikov Igor Solodovnikov
              Reporter:
              akira.kurogane Akira Kurogane
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 7 hours, 20 minutes
                  7h 20m

                    Smart Checklist