Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-1756

Storm-kafka tests leak resources due to retained references to KafkaServer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0, 1.0.1, 1.1.0
    • Component/s: storm-kafka
    • Labels:
      None

      Description

      Since JUnit keeps a reference to each test class until all tests for a module have run, the KafkaTestBroker fields are not eligible for garbage collection until all tests have run. KafkaTestBroker keeps a reference to KafkaServerStartable/KafkaServer, which allocates resources that are also not eligible for collection. This very quickly causes surefire to run out of memory if this class is used more than a few places.

        Attachments

          Activity

            People

            • Assignee:
              srdo Stig Rohde Døssing
              Reporter:
              srdo Stig Rohde Døssing
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: