Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HSEARCH-1495 Using MassIndexer leads to logged messages about unrelea…
…sed service MassIndexerFactoryProvider
  • Loading branch information
Sanne committed Jan 29, 2014
1 parent 61f9096 commit e6f3ff1
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -177,7 +177,12 @@ public MassIndexer createIndexer(Class<?>... types) {
MutableSearchFactory msf = (MutableSearchFactory) getSearchFactoryImplementor();
ServiceManager serviceManager = msf.getServiceManager();
MassIndexerFactory service = serviceManager.requestService( MassIndexerFactoryProvider.class, null );
return service.createMassIndexer( getSearchFactoryImplementor(), getFactory(), types );
try {
return service.createMassIndexer( getSearchFactoryImplementor(), getFactory(), types );
}
finally {
serviceManager.releaseService( MassIndexerFactoryProvider.class );
}
}

@Override
Expand Down

0 comments on commit e6f3ff1

Please sign in to comment.