]
Galder Zamarreño commented on ISPN-2229:
----------------------------------------
Accidentally fixed by ISPN-2276.
Fix spelling in error message in InfinispanDirectory.java
---------------------------------------------------------
Key: ISPN-2229
URL:
https://issues.jboss.org/browse/ISPN-2229
Project: Infinispan
Issue Type: Bug
Affects Versions: 5.2.0.Alpha3
Reporter: Scott Carlson
Assignee: Galder Zamarreño
Priority: Trivial
Fix For: 5.2.0.Alpha4, 5.2.0.Final
metadata is spelled incorrectly in InfinispanDirectory.java
--- a/lucene-directory/src/main/java/org/infinispan/lucene/InfinispanDirectory.java
+++ b/lucene-directory/src/main/java/org/infinispan/lucene/InfinispanDirectory.java
@@ -283,7 +283,7 @@ public IndexInput openInput(String name) throws IOException {
final FileCacheKey fileKey = new FileCacheKey(indexName, name);
FileMetadata fileMetadata = (FileMetadata) metadataCache.get(fileKey);
if (fileMetadata == null) {
- throw new FileNotFoundException("Error loading medatada for index file:
" + fileKey);
+ throw new FileNotFoundException("Error loading metadata for index file:
" + fileKey);
}
else if (fileMetadata.getSize() <= fileMetadata.getBufferSize()) {
//files smaller than chunkSize don't need a readLock
@@ -293,7 +293,7 @@ else if (fileMetadata.getSize() <= fileMetadata.getBufferSize())
{
boolean locked = readLocks.acquireReadLock(name);
if (!locked) {
// safest reaction is to tell this file doesn't exist anymore.
- throw new FileNotFoundException("Error loading medatada for index file:
" + fileKey);
+ throw new FileNotFoundException("Error loading metadata for index file:
" + fileKey);
}
return new InfinispanIndexInput(chunksCache, fileKey, fileMetadata,
readLocks);
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: