lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Fluerici (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-9099) Make a dataimport.properties in the core folder when using a shared config
Date Tue, 10 May 2016 13:42:13 GMT

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

Alexandru Fluerici updated SOLR-9099:
-------------------------------------
    Description: 
When you have multiple cores with the same shared config there is only one "dataimport.properties"
file that is located in the shared config directory, and gets overwritten when one of the
cores gets an update.

This can lead to incomplete data as all the cores will consider that an update was made even
if that update was just run only on a specific core.


At the moment I have made a change to my local SOLR class but it would be nice to see this
in the repo itself.

This is the change: 
@@ -117,7 +117,7 @@ public class SimplePropertiesWriter extends DIHProperties {
       if (core == null) {
         configDir = SolrResourceLoader.locateSolrHome().toString();
       } else {
-        configDir = core.getResourceLoader().getConfigDir();

+        configDir = core.getResourceLoader().getDataDir();
       }
     }
   }


  was:
When you have multiple cores with the same shared config there is only one "dataimport.properties"
file that is located in the shared config directory, and gets overwritten when one of the
cores gets an update.

This can lead to incomplete data as all the cores will consider that an update was made even
if that update was just run only on a specific core.


At the moment I have made a change to my local SOLR class but it would be nice to see this
in the repo itself.

This is the change: 
@@ -117,7 +117,7 @@ public class SimplePropertiesWriter extends DIHProperties {
       if (core == null) {
         configDir = SolrResourceLoader.locateSolrHome().toString();
       } else {
-        configDir = core.getResourceLoader().getConfigDir();
+        configDir = core.getResourceLoader().getDataDir();
       }
     }
   }



> Make a dataimport.properties in the core folder when using a shared config
> --------------------------------------------------------------------------
>
>                 Key: SOLR-9099
>                 URL: https://issues.apache.org/jira/browse/SOLR-9099
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 5.5, 6.0
>            Reporter: Alexandru Fluerici
>              Labels: easyfix, newbie, patch
>             Fix For: 5.5, 6.0
>
>
> When you have multiple cores with the same shared config there is only one "dataimport.properties"
file that is located in the shared config directory, and gets overwritten when one of the
cores gets an update.
> This can lead to incomplete data as all the cores will consider that an update was made
even if that update was just run only on a specific core.
> At the moment I have made a change to my local SOLR class but it would be nice to see
this in the repo itself.
> This is the change: 
> @@ -117,7 +117,7 @@ public class SimplePropertiesWriter extends DIHProperties {
>        if (core == null) {
>          configDir = SolrResourceLoader.locateSolrHome().toString();
>        } else {
> -        configDir = core.getResourceLoader().getConfigDir();
> +        configDir = core.getResourceLoader().getDataDir();
>        }
>      }
>    }



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message