[ 
https://issues.apache.org/jira/browse/SOLR-17441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Haythem Khiri updated SOLR-17441:
---------------------------------
    Description: 
This change enhances the property introspection logic in the addMXBeanMetrics 
method by skipping unreadable properties early in the process. 
This avoids unnecessary attempts to access properties without a read method, 
reducing the number of exceptions thrown and improving overall performance and 
stability. 
This enhancement impacts the efficiency of Solr's MBean metric collection, 
leading to more responsive monitoring and diagnostics.

  was:Enhance the property introspection logic by skipping unreadable 
properties early in the process. By checking if desc.getReadMethod() is null 
before attempting to access the property, we can avoid unnecessary attempts to 
access properties that do not have a read method. This will reduce the number 
of exceptions thrown and the overhead associated with handling those 
exceptions, improving overall performance and stability.


> MetricUtils optimization: skip unreadable properties
> ----------------------------------------------------
>
>                 Key: SOLR-17441
>                 URL: https://issues.apache.org/jira/browse/SOLR-17441
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Haythem Khiri
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> This change enhances the property introspection logic in the addMXBeanMetrics 
> method by skipping unreadable properties early in the process. 
> This avoids unnecessary attempts to access properties without a read method, 
> reducing the number of exceptions thrown and improving overall performance 
> and stability. 
> This enhancement impacts the efficiency of Solr's MBean metric collection, 
> leading to more responsive monitoring and diagnostics.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to