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

Mark Miller commented on SOLR-7458:
-----------------------------------

bq. Not at all sure. I'm open to suggestions.

I'm not yet sure myself. My main concern is that whatever this host property 
gets assigned ends up matching what hdfs returns as the host. This seems tricky 
to ensure offhand.

bq. I saw the property in solr.xml, but could not figure out how to access it. 
A pointer here would be helpful.

It's SolrXmlConfig or something along those lines, accessible at the 
CoreContainer level. I've been noodling how you might make this CoreContainer 
level scope rather than static scope so you have access to that host config. 
Again, looks a bit tricky.

bq. I guess there could be a JMX call happening while a new shard is being 
created? Do I need to plan for multiple concurrent JMX calls?

Right, SolrCores can be created at any time and will use new directories. I'm  
not so worried about staleness, but gets on a hashmap with concurrent 
get/updates can also hang or other bad stuff. Prob best to just use a 
ConcurrentHashMap.

> Expose HDFS Block Locality Metrics
> ----------------------------------
>
>                 Key: SOLR-7458
>                 URL: https://issues.apache.org/jira/browse/SOLR-7458
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>            Reporter: Mike Drob
>            Assignee: Mark Miller
>              Labels: metrics
>         Attachments: SOLR-7458.patch, SOLR-7458.patch
>
>
> We should publish block locality metrics when using HDFS.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to