Apache Lucene open-source search software
SOLR-5956: Use getInstanceDir instead of getRawInstanceDir as that was causing issues when trying to create a backup of an index on Linux when solr.solr.home is a symbolic link.
Timothy Potter5755634db6a8
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 5a6527ba069..5ce100456ee 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -138,6 +138,10 @@ New FeaturesBug Fixes----------------------+* SOLR-5956: Use coreDescriptor.getInstanceDir() instead of getRawInstanceDir()+ in the SnapShooter to avoid problems when solr.solr.home is a symbolic link.+ (Timothy Potter)+* SOLR-6002: Fix a couple of ugly issues around SolrIndexWriter close androllback as well as how SolrIndexWriter manages it's ref counted directoryinstance. (Mark Miller, Gregory Chanan)diff --git a/solr/core/src/java/org/apache/solr/handler/SnapShooter.java b/solr/core/src/java/org/apache/solr/handler/SnapShooter.javaindex 6150d4f5176..913f339ef87 100644--- a/solr/core/src/java/org/apache/solr/handler/SnapShooter.java+++ b/solr/core/src/java/org/apache/solr/handler/SnapShooter.java@@ -62,7 +62,7 @@ public class SnapShooter {solrCore = core;if (location == null) snapDir = core.getDataDir();else {- File base = new File(core.getCoreDescriptor().getRawInstanceDir());+ File base = new File(core.getCoreDescriptor().getInstanceDir());snapDir = org.apache.solr.util.FileUtils.resolvePath(base, location).getAbsolutePath();File dir = new File(snapDir);if (!dir.exists()) dir.mkdirs();