You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2014/03/25 02:29:35 UTC
svn commit: r1581176 - in /lucene/dev/branches/lucene_solr_4_7: ./ solr/
solr/CHANGES.txt solr/core/
solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java
Author: markrmiller
Date: Tue Mar 25 01:29:33 2014
New Revision: 1581176
URL: http://svn.apache.org/r1581176
Log:
SOLR-5907: The hdfs write cache can cause a reader to see a corrupted state. It now defaults to off, and if you were using solr.hdfs.blockcache.write.enabled explicitly, you should set it to false.
Modified:
lucene/dev/branches/lucene_solr_4_7/ (props changed)
lucene/dev/branches/lucene_solr_4_7/solr/ (props changed)
lucene/dev/branches/lucene_solr_4_7/solr/CHANGES.txt (contents, props changed)
lucene/dev/branches/lucene_solr_4_7/solr/core/ (props changed)
lucene/dev/branches/lucene_solr_4_7/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java
Modified: lucene/dev/branches/lucene_solr_4_7/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_7/solr/CHANGES.txt?rev=1581176&r1=1581175&r2=1581176&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_7/solr/CHANGES.txt (original)
+++ lucene/dev/branches/lucene_solr_4_7/solr/CHANGES.txt Tue Mar 25 01:29:33 2014
@@ -84,6 +84,13 @@ Bug Fixes
* SOLR-5734: We should use System.nanoTime rather than System.currentTimeMillis
when calculating elapsed time. (Mark Miller, Ramkumar Aiyengar)
+<<<<<<< .mine
+* SOLR-5907: The hdfs write cache can cause a reader to see a corrupted state.
+ It now defaults to off, and if you were using solr.hdfs.blockcache.write.enabled
+ explicitly, you should set it to false.
+ (Mark Miller)
+
+=======
* SOLR-5760: ConcurrentUpdateSolrServer has a blockUntilFinished call when
streamDeletes is true that should be tucked into the if statement below it.
(Mark Miller, Gregory Chanan)
@@ -91,6 +98,7 @@ Bug Fixes
* SOLR-5761: HttpSolrServer has a few fields that can be set via setters but
are not volatile. (Mark Miller, Gregory Chanan)
+>>>>>>> .r1581173
================== 4.7.0 ==================
Versions of Major Components
Modified: lucene/dev/branches/lucene_solr_4_7/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_7/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java?rev=1581176&r1=1581175&r2=1581176&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_7/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java (original)
+++ lucene/dev/branches/lucene_solr_4_7/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java Tue Mar 25 01:29:33 2014
@@ -102,9 +102,12 @@ public class HdfsDirectoryFactory extend
}
boolean blockCacheEnabled = params.getBool(BLOCKCACHE_ENABLED, true);
- boolean blockCacheReadEnabled = params.getBool(BLOCKCACHE_READ_ENABLED,
- true);
+ boolean blockCacheReadEnabled = params.getBool(BLOCKCACHE_READ_ENABLED, true);
boolean blockCacheWriteEnabled = params.getBool(BLOCKCACHE_WRITE_ENABLED, true);
+
+ if (blockCacheWriteEnabled) {
+ LOG.warn("Using " + BLOCKCACHE_WRITE_ENABLED + " is currently buggy and can result in readers seeing a corrupted view of the index.");
+ }
Directory dir = null;
if (blockCacheEnabled && dirContext != DirContext.META_DATA) {