Skip to content

Conversation

@olim7t
Copy link
Collaborator

@olim7t olim7t commented Mar 13, 2025

Backport of 600f4d9 from the main-5.0 branch.

Backport of 600f4d9 from the main-5.0 branch.
@eolivelli
Copy link

@olim7t olim7t marked this pull request as draft March 13, 2025 15:44
@olim7t
Copy link
Collaborator Author

olim7t commented Mar 13, 2025

I missed some errors in the test code, switching to draft while I fix them.

@olim7t olim7t marked this pull request as ready for review March 13, 2025 22:23
@sonarqubecloud
Copy link

@cassci-bot
Copy link

✔️ Build ds-cassandra-pr-gate/PR-1631 approved by Butler


Approved by Butler
See build details here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is why MemtableSizeHeapBuffersTest was failing.

Until now, ObjectSizes.meter was built with omitSharedBufferOverhead(). But with the changes in this PR, it isn't, so we need a dedicated method (copied from 49e0c611 on the main-5.0 branch).

FWIW, adding logs in SkipListmemtable#estimateRowOverhead() helped pinpoint the issue, the estimated sizes between main and this PR were wildly different.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, adding logs in SkipListmemtable#estimateRowOverhead() helped pinpoint the issue, the estimated sizes between main and this PR were wildly different.

For debugging purposes, you can also use .printVisitedTree() to get a printout of all the objects
and their calculated size on heap to debug jamm related issues. See:
README.md on github

@olim7t
Copy link
Collaborator Author

olim7t commented Mar 22, 2025

Sorry I need to close this -- by pushing my branches to a fork I accidentally polluted a bunch of apache PRs. I will reopen next week from a branch in this repo.

@olim7t olim7t closed this Mar 22, 2025
@olim7t olim7t deleted the jamm4 branch March 22, 2025 03:57
@olim7t
Copy link
Collaborator Author

olim7t commented Mar 24, 2025

Reopened as #1649.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants