You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by up...@apache.org on 2017/02/24 00:12:38 UTC

[3/3] geode git commit: Lowering the log level for errors when cleaning up the index repository

Lowering the log level for errors when cleaning up the index repository

Because we pull the rug out from under the IndexWriter when a member is
no longer primary, we may get exceptions back while trying to close the
writer.


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/86550db6
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/86550db6
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/86550db6

Branch: refs/heads/develop
Commit: 86550db61ef6052590e4a526e137b1238387fe23
Parents: ebbe8a1
Author: Dan Smith <up...@apache.org>
Authored: Wed Feb 22 17:25:23 2017 -0800
Committer: Dan Smith <up...@apache.org>
Committed: Thu Feb 23 15:51:02 2017 -0800

----------------------------------------------------------------------
 .../cache/lucene/internal/repository/IndexRepositoryImpl.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/86550db6/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java
----------------------------------------------------------------------
diff --git a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java
index 8a68b07..f356bef 100644
--- a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java
+++ b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/repository/IndexRepositoryImpl.java
@@ -172,8 +172,8 @@ public class IndexRepositoryImpl implements IndexRepository {
       stats.removeDocumentsSupplier(documentCountSupplier);
       try {
         writer.close();
-      } catch (IOException e) {
-        logger.warn("Unable to clean up index repository", e);
+      } catch (Exception e) {
+        logger.debug("Unable to clean up index repository", e);
       }
     } finally {
       try {