[infinispan-issues] [JBoss JIRA] (ISPN-2229) Fix spelling in error message in InfinispanDirectory.java
Thomas Fromm (JIRA)
jira-events at lists.jboss.org
Mon Sep 10 05:28:33 EDT 2012
[ https://issues.jboss.org/browse/ISPN-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Fromm updated ISPN-2229:
-------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/1298
> 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: Galder Zamarreño
> Priority: Trivial
> Fix For: 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: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list