Elasticsearch backend in the classpath causes eager initialization of non related IndexManagers

Description

I have a test where I am not using the Elasticsearch index manager, but I do have it in the classpath.

This causes some Services from the elasticsearch backend to be loaded, namely
ElasticsearchNestingContextFactoryProvider which will cause my indexmanager (which is not elasticsearch) to be eagerly initialized.

This happens in the method isMappedToElasticsearch.

This is not desirable since I have multiple shards and each shard consumes extra resources.

Activity

Fixed

Details

Assignee

Reporter

Components

Priority

Created December 16, 2016 at 1:26 PM
Updated January 22, 2017 at 1:08 AM
Resolved January 17, 2017 at 12:10 AM