Skip to content
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

writePredictedSpeculativeRetryPerformanceMetrics computes extra replica snapshot once #556

Open
wants to merge 3 commits into
base: palantir-cassandra-2.2.18
Choose a base branch
from

Conversation

schlosna
Copy link
Contributor

While reviewing some JFRs, AbstractReadExecutor.writePredictedSpeculativeRetryPerformanceMetrics() and PredictedSpeculativeRetryPerformanceMetrics.maybeWriteMetrics(ColumnFamilyStore cfs, Collection<Long> latencies, Optional<Snapshot> extraReplicaSnapshot) pop up with heavy allocations that we can reduce by computing the extra replica snapshot once per writePredictedSpeculativeRetryPerformanceMetrics invocation

image
image
image

@schlosna schlosna force-pushed the davids/endpoint-snitch-metrics branch 6 times, most recently from da116f3 to b014b22 Compare October 14, 2024 01:52
@schlosna schlosna force-pushed the davids/endpoint-snitch-metrics branch from b014b22 to e39cff9 Compare October 23, 2024 22:24
@wi11dey
Copy link
Contributor

wi11dey commented Oct 28, 2024

lgtm, cutting rc to smoke test

Comment on lines 26 to 27
import com.codahale.metrics.Snapshot;
import org.apache.cassandra.db.ColumnFamily;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unused import

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will update.

Is there a trick to getting this repo to play nicely with IntelliJ to autofix imports? I assume we don't want to apply the Palantir-java-format as Cassandra has a very different source style and backports would be much more difficult.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

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.

3 participants