Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-839

Multiple memory leaks because of shared_ptr cycles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • None
    • 0.12.0

    Description

      There seems to be a Connection<->Processor shared_ptr cycle which means that the Processors never get destructed.

      This causes leaks in reloads and in tests.

      There are also other cycles causing leaks:

      • Connection <-> FlowFile (this seems to be partially mitigated by Connection::drain(), but not entirely)
      • ResourceClaim <-> VolatileContentRepository
      • VolatileContentRepository <-> VolatileContentRepository (capturing a shared_ptr into a thread func and detaching the thread)
      • FlowController <- > SchedulingAgent (TimerDrivenSchedulingAgent, EventDrivenSchedulingAgent, CronDrivenSchedulingAgent) and even FlowController <- > util::ThreadPool because of this

      Attachments

        Issue Links

          Activity

            People

              adam-markovics Ádám Markovics
              bakaid Dániel Bakai
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m