You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by nn...@apache.org on 2018/05/18 23:40:30 UTC

[geode] 01/02: GEODE-5109: Handle only IllegalStateException

This is an automated email from the ASF dual-hosted git repository.

nnag pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit a0cb1fe28c720f66ed9161ff1778fd183c16e468
Author: nabarun <na...@cs.wisc.edu>
AuthorDate: Fri May 11 10:29:15 2018 -0700

    GEODE-5109: Handle only IllegalStateException
    
    	* This validation should only check for IllegalStateException which is sent as the reply exception.
    	* Any other exception on the remote member should not stop lucene index creation in the local member.
---
 .../java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java
index 5267e30..6ef8c60 100644
--- a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java
+++ b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java
@@ -253,7 +253,7 @@ public class LuceneServiceImpl implements InternalLuceneService {
 
     try {
       validateLuceneIndexProfile(region);
-    } catch (Exception e) {
+    } catch (IllegalStateException e) {
       region.removeCacheServiceProfile(luceneIndexCreationProfile.getId());
       throw new UnsupportedOperationException(
           LocalizedStrings.LuceneIndexCreation_INDEX_CANNOT_BE_CREATED_DUE_TO_PROFILE_VIOLATION

-- 
To stop receiving notification emails like this one, please contact
nnag@apache.org.