New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CASSANDRA-18329: Upgrade Jamm #2488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review done. Overall it looks good; small questions and comments left. The main questions about InMemoryTries
and the FullQueryLogger
(Plus BinAuditLogger
) were not updated here.
One thing that is not mentioned in the code comments but I discussed a few days ago with another community member - do we need to measure actually at all the ClusteringComparator
CASSANDRA-16304? Now we can, as we fixed jamm for newer versions and hidden classes (which are used to implement lambdas), but should we measure this particular lambda?
I did not review the eclipse warnings commit as I believe it is out of scope for this ticket.
Perhaps you should mention it on CASSANDRA-18239, where we replace eclipse warnings with CheckerFramework.
Almost forgot:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a valid point that JDK8 is sill not dropped. Even if it will be dropped immediately after this ticket, it is worth it to confirm that test run too as jamm works with JDK8.
Started CI run here:
https://app.circleci.com/pipelines/github/ekaterinadimitrova2/cassandra/2422/workflows/ceb46a2f-c682-4830-bb14-3b0d75294f4a
I mentioned it in Slack last week, but also adding here so it doesn't get lost. |
The issue with |
I do believe the current patch just mimicked the same behavior we already have. Even if we decide to improve anything around that, it would be in a different ticket as an improvement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 ,just a few nits to be adressed on commit. All test results were published on the ticket and LGTM
@@ -98,6 +99,11 @@ public void log(AuditLogEntry auditLogEntry) | |||
@VisibleForTesting | |||
public static class Message extends BinLog.ReleaseableWriteMarshallable implements WeightedQueue.Weighable | |||
{ | |||
/** | |||
* The shallow size of a {@code Query} object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The shallow size of a {@code Message} object.
*/ | ||
private static final long EMPTY_SIZE = ObjectSizes.measure(new Batch()); | ||
|
||
/** | ||
* The way is pre-computed in the constructor and represent the object deep size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The weight is pre-computed in the constructor and represents the object's deep size.
Thanks for sending a pull request! Here are some tips if you're new here:
Commit messages should follow the following format:
The Cassandra Jira