Scott Carlson created ISPN-2229:
-----------------------------------
Summary: 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.ALPHA2
Reporter: Scott Carlson
Assignee: Manik Surtani
Priority: Trivial
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:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira