From 933f13c64d2880d51164de98aaa35244be770fc9 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Thu, 27 Apr 2023 21:43:24 +0200 Subject: [PATCH] [bugfix] Correct the capitalisation and spelling of 'Lucene' in error messages --- .../java/org/exist/indexing/lucene/LuceneIndex.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/LuceneIndex.java b/extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/LuceneIndex.java index 51b55264972..ee407c33df6 100644 --- a/extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/LuceneIndex.java +++ b/extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/LuceneIndex.java @@ -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()) @@ -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); @@ -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()); } } @@ -229,7 +229,7 @@ protected void commit() { } try { if(LOG.isDebugEnabled()) { - LOG.debug("Committing lucene index"); + LOG.debug("Committing Lucene index"); } if (cachedWriter != null) { cachedTaxonomyWriter.commit(); @@ -237,9 +237,9 @@ protected void 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); } }