polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [32/50] [abbrv] polygene-java git commit: Fix Exceptions in RDF Indexing
Date Mon, 17 Jul 2017 12:46:24 GMT
Fix Exceptions in RDF Indexing


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/d346b7d3
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/d346b7d3
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/d346b7d3

Branch: refs/heads/master
Commit: d346b7d3079c19dc0e6a64bbba605724cc77038b
Parents: 918d7b6
Author: niclas <niclas@hedhman.org>
Authored: Sun Jul 9 12:48:45 2017 +0800
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Thu Jul 13 17:13:50 2017 +0200

----------------------------------------------------------------------
 .../apache/polygene/index/rdf/UnsupportedLanguageException.java  | 4 ++--
 .../polygene/index/rdf/assembly/RdfMemoryStoreAssembler.java     | 1 +
 .../index/rdf/assembly/RdfNativeSesameStoreAssembler.java        | 1 +
 .../index/rdf/assembly/RdfRdbmsSesameStoreAssembler.java         | 1 +
 .../org/apache/polygene/index/rdf/indexing/RdfIndexExporter.java | 1 +
 .../apache/polygene/index/rdf/indexing/RdfIndexerService.java    | 2 +-
 6 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d346b7d3/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/UnsupportedLanguageException.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/UnsupportedLanguageException.java
b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/UnsupportedLanguageException.java
index 3e02eb9..08c0d00 100644
--- a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/UnsupportedLanguageException.java
+++ b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/UnsupportedLanguageException.java
@@ -19,10 +19,10 @@
  */
 package org.apache.polygene.index.rdf;
 
+import org.apache.polygene.api.indexing.IndexingException;
 import org.openrdf.query.QueryLanguage;
 
-public class UnsupportedLanguageException
-    extends RuntimeException
+public class UnsupportedLanguageException extends IndexingException
 {
     private QueryLanguage language;
 

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d346b7d3/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfMemoryStoreAssembler.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfMemoryStoreAssembler.java
b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfMemoryStoreAssembler.java
index ef6f5bd..5299c48 100644
--- a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfMemoryStoreAssembler.java
+++ b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfMemoryStoreAssembler.java
@@ -46,6 +46,7 @@ public class RdfMemoryStoreAssembler extends AbstractRdfIndexingAssembler<RdfNat
     @Override
     public void assemble( ModuleAssembly module )
     {
+        super.assemble( module );
         module.services( MemoryRepositoryService.class )
               .visibleIn( repositoryVisibility )
               .instantiateOnStartup();

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d346b7d3/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfNativeSesameStoreAssembler.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfNativeSesameStoreAssembler.java
b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfNativeSesameStoreAssembler.java
index 7fb19a9..5014acc 100644
--- a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfNativeSesameStoreAssembler.java
+++ b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfNativeSesameStoreAssembler.java
@@ -47,6 +47,7 @@ public class RdfNativeSesameStoreAssembler extends AbstractRdfIndexingAssembler<
     @Override
     public void assemble( ModuleAssembly module )
     {
+        super.assemble( module );
         module.services( NativeRepositoryService.class )
               .visibleIn( repositoryVisibility )
               .instantiateOnStartup();

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d346b7d3/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfRdbmsSesameStoreAssembler.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfRdbmsSesameStoreAssembler.java
b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfRdbmsSesameStoreAssembler.java
index 1176e16..521476f 100644
--- a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfRdbmsSesameStoreAssembler.java
+++ b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/assembly/RdfRdbmsSesameStoreAssembler.java
@@ -47,6 +47,7 @@ public class RdfRdbmsSesameStoreAssembler  extends AbstractRdfIndexingAssembler<
     @Override
     public void assemble( ModuleAssembly module )
     {
+        super.assemble( module );
         module.services( RdbmsRepositoryService.class )
               .visibleIn( repositoryVisibility )
               .instantiateOnStartup();

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d346b7d3/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexExporter.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexExporter.java
b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexExporter.java
index ad0e599..b33eea9 100644
--- a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexExporter.java
+++ b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexExporter.java
@@ -77,6 +77,7 @@ public interface RdfIndexExporter extends IndexExporter
                 catch( Exception e )
                 {
                     e.printStackTrace();
+                    throw new IOException( "Problem writing to RdfWriter", e );
                 }
                 finally
                 {

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/d346b7d3/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexerService.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexerService.java
b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexerService.java
index d47a7f7..38f501a 100644
--- a/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexerService.java
+++ b/extensions/indexing-rdf/src/main/java/org/apache/polygene/index/rdf/indexing/RdfIndexerService.java
@@ -125,7 +125,7 @@ public interface RdfIndexerService extends StateChangeListener
             catch( Throwable e )
             {
                 e.printStackTrace();
-                //TODO What shall we do with the exception?
+                //TODO What shall we do with the exception? Probably figure out if we can
recover, and possibly queue the state changes and retry later.
             }
         }
 


Mime
View raw message