Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19942

Pooled BTree.FastBuilder keeps references to data after reset

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 4.0.x, 4.1.x, 5.0.x, 5.x
    • Local/Other
    • None
    • All
    • None

    Description

      Hi I am analyzing of argecolumn_test.TestLargeColumn test failure (CASSANDRA-19702) and have noticed that sometimes when I run the test locally it fails with OOM. The test sends an insert with a large column value.

      In the created heap dump I have found that there is a kind of memory leaking for the sent column values though thread-local variable used for re-usable Pooled BTree.FastBuilder:

      In normal cases it is probably not critical because the objects are not that huge but it is still a leak.

      reset() logic in BTree.FastBuilder does not clean references to such values because during other operations like build() "count" value can be reset to 0.

       

      Attachments

        Issue Links

        Activity

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

          People

            dnk Dmitry Konstantinov Assign to me
            dnk Dmitry Konstantinov
            Dmitry Konstantinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 20m
                20m

                Slack

                  Issue deployment