incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/4] git commit: Changing an error into a warning with a logg message.
Date Thu, 06 Jun 2013 21:15:10 GMT
Changing an error into a warning with a logg message.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/b370a3f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/b370a3f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/b370a3f9

Branch: refs/heads/0.1.5
Commit: b370a3f9f0d772f035f65ea97f8e5e3ae6af45db
Parents: d07d90e
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Thu Jun 6 16:42:24 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu Jun 6 16:42:24 2013 -0400

----------------------------------------------------------------------
 .../blur/manager/writer/BlurIndexRefresher.java    |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b370a3f9/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexRefresher.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexRefresher.java
b/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexRefresher.java
index 7f669b8..cbeaaa7 100644
--- a/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexRefresher.java
+++ b/blur-core/src/main/java/org/apache/blur/manager/writer/BlurIndexRefresher.java
@@ -25,7 +25,7 @@ import java.util.concurrent.TimeUnit;
 
 import org.apache.blur.log.Log;
 import org.apache.blur.log.LogFactory;
-
+import org.apache.lucene.store.AlreadyClosedException;
 
 public class BlurIndexRefresher extends TimerTask {
 
@@ -70,6 +70,8 @@ public class BlurIndexRefresher extends TimerTask {
         index.refresh();
       } catch (IOException e) {
         LOG.error("Unknown error while refreshing index of writer [{0}]", e, index);
+      } catch (AlreadyClosedException e) {
+        LOG.warn("Index has already been closed [{0}]", e, index);
       }
     }
   }


Mime
View raw message