Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here. Want to know more about what has changed? Check out the Community News blog.

CDH6 solr7_metrics_handler.py bug

CDH6 solr7_metrics_handler.py bug

New Contributor

CDH6's solr7_metrics_handler.py has a bug in that it only looks for metrics relating to Concurrent Mark Sweep Garbage Colllector. When running G1 Garbage Collector with Solr, those metrics don't exist and the script gets a KeyError at line 48 trying to use 'gc.ConcurrentMarkSweep.count' as a key into the solrJvm map.

 

This appears to "break" the ability for Cloudera Manager to show Solr metrics (i.e. all yield "No Data").

 

Is it a known issue and/or has it been resolved in 6.0.1 or later?

 

Seems that script ought to check for *either* ConcurrentMarkSweep or G1 metrics coming out of Solr...and if neither exist, then use 0 as the values in the metrics it publishes.