[
https://issues.apache.org/jira/browse/SOLR-3997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Høydahl closed SOLR-3997.
-----------------------------
Resolution: Invalid
> QueryElevationComponent using native File object to access file
> ---------------------------------------------------------------
>
> Key: SOLR-3997
> URL: https://issues.apache.org/jira/browse/SOLR-3997
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 4.0
> Reporter: James Ji
>
> We are currently working on having Solr files read from HDFS. We have a class
> which extends Directory class to handle all file access. However, we found
> that QueryElevationComponent is not using Directory class but using the
> native File object.
> QueryElevationComponent.inform(){
> ....
> File fC = new File(core.getResourceLoader().getConfigDir(), f);
> File fD = new File(core.getDataDir(), f);
> if (fC.exists() == fD.exists()) {
> throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
> "QueryElevationComponent missing config file: '" + f + "\n"
> + "either: " + fC.getAbsolutePath() + " or " +
> fD.getAbsolutePath() + " must exist, but not both.");
> }
> if (fC.exists()) {
> exists = true;
> log.info("Loading QueryElevation from: "+fC.getAbsolutePath());
> Config cfg = new Config(core.getResourceLoader(), f);
> elevationCache.put(null, loadElevationMap(cfg));
> }
> ....
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]