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

Fix spelling in error message in InfinispanDirectory.java

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Done
    • 5.2.0.Alpha3
    • 5.2.0.Alpha4, 5.2.0.Final
    • None
    • None

    Description

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

      Attachments

        Activity

          People

            gzamarre Galder ZamarreƱo
            scarlson_jira Scott Carlson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: