From e955e41a912bb1e785ff55fb449a3b9d154a79aa Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 29 Jul 2010 15:10:37 +0300 Subject: [PATCH] improve handling of failure when trying to read md5, should be ignored on any exception, not just io exception --- .../index/gateway/blobstore/BlobStoreIndexShardGateway.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/gateway/blobstore/BlobStoreIndexShardGateway.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/gateway/blobstore/BlobStoreIndexShardGateway.java index 20461e9541e..fc90b03e9e8 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/gateway/blobstore/BlobStoreIndexShardGateway.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/gateway/blobstore/BlobStoreIndexShardGateway.java @@ -762,7 +762,7 @@ public abstract class BlobStoreIndexShardGateway extends AbstractIndexShardCompo cachedMd5.put(name, md5); } builder.put(name, new PlainBlobMetaData(name, sizeInBytes, md5)); - } catch (IOException e) { + } catch (Exception e) { // don't add it! } }