Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2229

Fix spelling in error message in InfinispanDirectory.java

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial Trivial
    • 5.2.0.Final
    • 5.2.0.Final
    • None
    • None

      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);
      }

              rh-ee-galder Galder ZamarreƱo
              scarlson_jira Scott Carlson (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: