lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1649383 - in /lucene/dev/trunk/solr: CHANGES.txt contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
Date Sun, 04 Jan 2015 19:00:47 GMT
Author: erick
Date: Sun Jan  4 19:00:46 2015
New Revision: 1649383

URL: http://svn.apache.org/r1649383
Log:
SOLR-6907: URLEncode documents directory in MorphlineMapperTest to handle spaces etc in file
name

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1649383&r1=1649382&r2=1649383&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Sun Jan  4 19:00:46 2015
@@ -399,6 +399,9 @@ Bug Fixes
 
 * SOLR-6735: Make CloneFieldUpdateProcessorFactory null safe (Steve Davids via ehatcher)
 
+* SOLR-6907: URLEncode documents directory in MorphlineMapperTest to handle spaces etc.
+  in file name. (Ramkumar Aiyengar via Erick Erickson)
+
 
 Optimizations
 ----------------------

Modified: lucene/dev/trunk/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java?rev=1649383&r1=1649382&r2=1649383&view=diff
==============================================================================
--- lucene/dev/trunk/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
(original)
+++ lucene/dev/trunk/solr/contrib/map-reduce/src/test/org/apache/solr/hadoop/MorphlineMapperTest.java
Sun Jan  4 19:00:46 2015
@@ -16,6 +16,7 @@
  */
 package org.apache.solr.hadoop;
 
+import java.net.URLEncoder;
 import java.util.List;
 
 import org.apache.hadoop.conf.Configuration;
@@ -46,7 +47,8 @@ public class MorphlineMapperTest extends
     Configuration config = mapDriver.getConfiguration();
     setupHadoopConfig(config);
 
-    mapDriver.withInput(new LongWritable(0L), new Text("hdfs://localhost/" + DOCUMENTS_DIR
+ "/sample-statuses-20120906-141433.avro"));
+    mapDriver.withInput(new LongWritable(0L), new Text("hdfs://localhost/" +
+        URLEncoder.encode(DOCUMENTS_DIR, "UTF-8") + "/sample-statuses-20120906-141433.avro"));
 
     SolrInputDocument sid = new SolrInputDocument();
     sid.addField("id", "uniqueid1");



Mime
View raw message