[ 
https://issues.apache.org/jira/browse/CASSANDRA-21020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082453#comment-18082453
 ] 

Dmitry Konstantinov edited comment on CASSANDRA-21020 at 5/20/26 11:05 PM:
---------------------------------------------------------------------------

the remaining tricky part: dtests and isolated classloaders, they seem unhappy 
about the current logic..


was (Author: dnk):
the remaining tricky part: dtests and isolated classloaders, they seems unhappy 
about the current logic..

> Optimize thread local for metrics and tracing
> ---------------------------------------------
>
>                 Key: CASSANDRA-21020
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21020
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Observability/Metrics, Observability/Tracing
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>             Fix For: 6.x, 7.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently Netty thread local logic is used in tracing to keep state and in 
> metrics (thread local counters logic introduced in CASSANDRA-20250), so we do 
> the thread local lookups many times during a request processing. These cases 
> can be optimized by placing these objects as field variables to Thread itself 
> by introducing CassandraThread as a child of FastThreadLocalThread.
> Similar idea can be found even in JDK (ThreadLocalRandom logic was introduced 
> for ForkJoinPool speedup)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to