Skip to content

Commit

Permalink
Merge pull request #4892 from evolvedbinary/hotfix/correct-spelling
Browse files Browse the repository at this point in the history
Correct the capitalisation and spelling of 'Lucene' in error messages
  • Loading branch information
reinhapa committed May 1, 2023
2 parents 64f44b9 + 933f13c commit 9d9d02c
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void configure(BrokerPool pool, Path dataDir, Element config) throws Data
try {
bufferSize = Double.parseDouble(bufferSizeParam);
} catch (NumberFormatException e) {
LOG.warn("Invalid buffer size setting for lucene index: {}", bufferSizeParam, e);
LOG.warn("Invalid buffer size setting for Lucene index: {}", bufferSizeParam, e);
}

if (LOG.isDebugEnabled())
Expand Down Expand Up @@ -138,7 +138,7 @@ public void open() throws DatabaseConfigurationException {
searcherManager = new SearcherTaxonomyManager(cachedWriter, true, null, cachedTaxonomyWriter);
readerManager = new ReaderManager(cachedWriter, true);
} catch (IOException e) {
throw new DatabaseConfigurationException("Exception while reading lucene index directory: " +
throw new DatabaseConfigurationException("Exception while reading Lucene index directory: " +
e.getMessage(), e);
} finally {
releaseWriter(writer);
Expand Down Expand Up @@ -167,7 +167,7 @@ public synchronized void close() throws DBException {
taxoDirectory.close();
directory.close();
} catch (IOException e) {
throw new DBException("Caught exception while closing lucene indexes: " + e.getMessage());
throw new DBException("Caught exception while closing Lucene indexes: " + e.getMessage());
}
}

Expand Down Expand Up @@ -229,17 +229,17 @@ protected void commit() {
}
try {
if(LOG.isDebugEnabled()) {
LOG.debug("Committing lucene index");
LOG.debug("Committing Lucene index");
}
if (cachedWriter != null) {
cachedTaxonomyWriter.commit();
cachedWriter.commit();
}
needsCommit = false;
} catch(CorruptIndexException cie) {
LOG.error("Detected corrupt Lucence index on writer release and commit: {}", cie.getMessage(), cie);
LOG.error("Detected corrupt Lucene index on writer release and commit: {}", cie.getMessage(), cie);
} catch(IOException ioe) {
LOG.error("Detected Lucence index issue on writer release and commit: {}", ioe.getMessage(), ioe);
LOG.error("Detected Lucene index issue on writer release and commit: {}", ioe.getMessage(), ioe);
}
}

Expand Down

0 comments on commit 9d9d02c

Please sign in to comment.