priyen-stripe opened a new issue, #16849:
URL: https://github.com/apache/pinot/issues/16849

   Noticed this while testing query killing:
   Metrics in PerQueryCPUMemAccountantFactory not working (flatline / 0) 
   
   
    Timeline:
     1. Feb 1, 2023 (1d370a8c24): PerQueryCPUMemAccountantFactory added 
ServerMetrics.get() call in WatcherTask() constructor
     2. May 10, 2023 (3a8c578020): Thread accountant initialization added to 
BaseServerStarter after ServerInstance creation - No problem yet
     3. July 3, 2025 (d40731f972): Thread accountant initialization moved 
before ServerInstance creation - Bug introduced!
   
     The commit moved the 
Tracing.ThreadAccountantOps.initializeThreadAccountant() call from AFTER 
ServerInstance creation to BEFORE ServerInstance creation, and also modified 
ServerInstance constructor to take Tracing.getThreadAccountant() as a parameter.
   
     1. createThreadAccountant() - Creates PerQueryCPUMemAccountantFactory → 
calls ServerMetrics.get() → gets NOOP
     2. new ServerInstance() - Creates and registers real ServerMetrics but 
PerQueryCPUMemAccountantFactory continues to use the NOOP


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to