Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14396 Flaky memory leak tests rely on System.gc for correctness
  3. KAFKA-17265

Fix flaky MemoryRecordsBuilderTest#testBuffersDereferencedOnClose

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • None

    Description

      The test depends on GC to verify the memory usage. However, that is unstable. All we want to prove is that the inner "object" will drop the reference. Hence, we should rewrite the test to check the reference of inner object instead of calling GC.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            brandboat Kuan Po Tseng
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment