You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Francisco Guerrero (Jira)" <ji...@apache.org> on 2025/10/10 03:21:00 UTC
[jira] [Updated] (CASSSIDECAR-355) Avoid creating objects in the CassandraAdapter implementation
[ https://issues.apache.org/jira/browse/CASSSIDECAR-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francisco Guerrero updated CASSSIDECAR-355:
-------------------------------------------
Bug Category: Parent values: Degradation(12984)Level 1 values: Resource Management(12995)
Complexity: Normal
Component/s: Performance
Discovered By: Performance Regression Test
Fix Version/s: 0.3
Severity: Normal
Status: Open (was: Triage Needed)
> Avoid creating objects in the CassandraAdapter implementation
> -------------------------------------------------------------
>
> Key: CASSSIDECAR-355
> URL: https://issues.apache.org/jira/browse/CASSSIDECAR-355
> Project: Sidecar for Apache Cassandra
> Issue Type: Bug
> Components: Performance
> Reporter: Francisco Guerrero
> Assignee: Francisco Guerrero
> Priority: Major
> Fix For: 0.3
>
> Attachments: PastedGraphic-1.png
>
>
> We need to avoid re-recreating internal objects used by the adapter every time we use them. There’s no need to recreate them, and we are losing some cached values which we need to recompute on every request. One outstanding example is recomputing the value for the {{org.apache.cassandra.sidecar.adapters.base.CassandraStorageOperations#dataFileLocations}} which is supposed to remain cached, but because we are creating the {{org.apache.cassandra.sidecar.adapters.base.CassandraStorageOperations}} every time the {{org.apache.cassandra.sidecar.adapters.base.CassandraAdapter#storageOperations}} method is called, we are not actually effectively gaining anything.
> We can actually see some of these issues show up in flamegraphs taking up a non-insignificant amount of CPU.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org