Commit 3ecb6d11 by Suma Shivaprasad

Fixed indexing failures for specific types and due to missing transaction…

Fixed indexing failures for specific types and due to missing transaction closures. Todo - Nested transactions with write lock on graph and nested read transaction in DMS.createType are not working with bdb
parents f7fe3750 eff6c6ef
...@@ -85,7 +85,8 @@ public abstract class ABridge implements IBridge { ...@@ -85,7 +85,8 @@ public abstract class ABridge implements IBridge {
ITypedReferenceableInstance refBean = null; ITypedReferenceableInstance refBean = null;
try { try {
refBean = type.convert(this.convertToReferencable(bean), Multiplicity.REQUIRED); refBean = type.convert(this.convertToReferencable(bean), Multiplicity.REQUIRED);
String id = repo.createEntity(refBean, type.getName()); // String id = repo.createEntity(refBean, type.getName());
String id = null;
return id; return id;
} catch (IllegalArgumentException | IllegalAccessException e) { } catch (IllegalArgumentException | IllegalAccessException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
......
...@@ -305,7 +305,6 @@ public class GraphBackedSearchIndexer implements SearchIndexer { ...@@ -305,7 +305,6 @@ public class GraphBackedSearchIndexer implements SearchIndexer {
} }
indexBuilder.buildCompositeIndex(); indexBuilder.buildCompositeIndex();
LOG.info("Created index for property {} in composite index {}", propertyName, indexName); LOG.info("Created index for property {} in composite index {}", propertyName, indexName);
} }
...@@ -333,7 +332,6 @@ public class GraphBackedSearchIndexer implements SearchIndexer { ...@@ -333,7 +332,6 @@ public class GraphBackedSearchIndexer implements SearchIndexer {
TitanGraphIndex vertexIndex = management.getGraphIndex(Constants.VERTEX_INDEX); TitanGraphIndex vertexIndex = management.getGraphIndex(Constants.VERTEX_INDEX);
management.addIndexKey(vertexIndex, propertyKey); management.addIndexKey(vertexIndex, propertyKey);
LOG.debug("Created backing index for property {} of type {} ", propertyName, propertyClass.getName()); LOG.debug("Created backing index for property {} of type {} ", propertyName, propertyClass.getName());
} }
LOG.info("Created mixed vertex index for property {}", propertyName); LOG.info("Created mixed vertex index for property {}", propertyName);
} }
......
...@@ -52,17 +52,17 @@ ...@@ -52,17 +52,17 @@
<logger name="com.thinkaurelius.titan" additivity="false"> <logger name="com.thinkaurelius.titan" additivity="false">
<level value="info"/> <level value="debug"/>
<appender-ref ref="FILE"/> <appender-ref ref="FILE"/>
</logger> </logger>
<logger name="org.elasticsearch" additivity="false"> <logger name="org.elasticsearch" additivity="false">
<level value="info"/> <level value="debug"/>
<appender-ref ref="FILE"/> <appender-ref ref="FILE"/>
</logger> </logger>
<logger name="org.apache.lucene" additivity="false"> <logger name="org.apache.lucene" additivity="false">
<level value="info"/> <level value="debug"/>
<appender-ref ref="FILE"/> <appender-ref ref="FILE"/>
</logger> </logger>
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</logger> </logger>
<root> <root>
<priority value="info"/> <priority value="debug"/>
<appender-ref ref="FILE"/> <appender-ref ref="FILE"/>
</root> </root>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment