You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/01/29 03:24:01 UTC
[GitHub] [solr] dsmiley commented on a change in pull request #324: SOLR-14660 - move HDFS to a module
dsmiley commented on a change in pull request #324:
URL: https://github.com/apache/solr/pull/324#discussion_r794991015
##########
File path: solr/core/src/java/org/apache/solr/update/UpdateHandler.java
##########
@@ -115,12 +115,12 @@ public UpdateHandler(SolrCore core, UpdateLog updateLog) {
boolean skipUpdateLog = core.getCoreDescriptor().getCloudDescriptor() != null && !core.getCoreDescriptor().getCloudDescriptor().requiresTransactionLog();
if (updateLog == null && ulogPluginInfo != null && ulogPluginInfo.isEnabled() && !skipUpdateLog) {
DirectoryFactory dirFactory = core.getDirectoryFactory();
- if (dirFactory instanceof HdfsDirectoryFactory) {
- ulog = new HdfsUpdateLog(((HdfsDirectoryFactory)dirFactory).getConfDir());
- } else {
- ulog = ulogPluginInfo.className == null ? new UpdateLog():
- core.getResourceLoader().newInstance(ulogPluginInfo, UpdateLog.class, true);
- }
+
+ // if the update log class is not defined in the plugin info / solrconfig.xml
+ // (like <updateLog class="${solr.ulog:solr.UpdateLog}"> )
+ // we fall back use the one which is the default for the given directory factory
+ ulog = ulogPluginInfo.className == null ? dirFactory.newDefaultUpdateLog() :
Review comment:
Ooh; I missed line 132. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org