NIFI-527: Cleaned up log messages
Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/2f7b2ef3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/2f7b2ef3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/2f7b2ef3
Branch: refs/heads/improve-prov-performance
Commit: 2f7b2ef30091334d40655485d147aa1a571fd6b9
Parents: 9a9973a
Author: Mark Payne <markap14@hotmail.com>
Authored: Tue Apr 21 10:54:33 2015 -0400
Committer: Mark Payne <markap14@hotmail.com>
Committed: Tue Apr 21 10:54:33 2015 -0400
----------------------------------------------------------------------
.../org/apache/nifi/provenance/lucene/IndexManager.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/2f7b2ef3/nifi/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/lucene/IndexManager.java
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/lucene/IndexManager.java
b/nifi/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/lucene/IndexManager.java
index 0d93f3b..3943504 100644
--- a/nifi/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/lucene/IndexManager.java
+++ b/nifi/nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/lucene/IndexManager.java
@@ -141,7 +141,8 @@ public class IndexManager implements Closeable {
try {
if ( count == null ) {
- logger.warn("Index Writer {} was returned to IndexManager for {}, but this writer is
not known. This could potentially lead to a resource leak", writer, indexingDirectory);
+ logger.warn("Index Writer {} was returned to IndexManager for {}, but this writer is
not known. "
+ + "This could potentially lead to a resource leak", writer, indexingDirectory);
writer.close();
} else if ( count.getCount() <= 1 ) {
// we are finished with this writer.
@@ -185,10 +186,9 @@ public class IndexManager implements Closeable {
if ( searcher.isCache() ) {
final int refCount = searcher.getSearcher().getIndexReader().getRefCount();
if ( refCount <= 0 ) {
- // if refCount == 0, then the reader has been closed, so we need to discard the
- // searcher.
- logger.debug("Reference count for cached Index Searcher {} is currently {}; "
- + "removing cached searcher", searcher.getSearcher().getIndexReader(), refCount);
+ // if refCount == 0, then the reader has been closed, so we need to discard the searcher
+ logger.debug("Reference count for cached Index Searcher for {} is currently {}; "
+ + "removing cached searcher", absoluteFile, refCount);
expired.add(searcher);
continue;
}
|