Thomas Mueller created OAK-11553:
------------------------------------
Summary: Elastic: index name is swallowed in case of
IllegalArgumentException
Key: OAK-11553
URL: https://issues.apache.org/jira/browse/OAK-11553
Project: Jackrabbit Oak
Issue Type: Improvement
Components: indexing
Reporter: Thomas Mueller
If creating the request for an index definition fails with
IllegalArgumentException, then the index name is swallowed.
{noformat}
java.lang.IllegalArgumentException: Was expecting to find jcr:content node to
read resource tokenzier
at
org.apache.jackrabbit.oak.commons.conditions.Validate.checkArgument(Validate.java:99)
at
org.apache.jackrabbit.oak.plugins.index.search.util.ConfigUtil.getBlob(ConfigUtil.java:116)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticCustomAnalyzer.loadContent(ElasticCustomAnalyzer.java:231)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticCustomAnalyzer.buildCustomAnalyzers(ElasticCustomAnalyzer.java:111)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexHelper.loadSettings(ElasticIndexHelper.java:189)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexHelper.lambda$createIndexRequest$1(ElasticIndexHelper.java:82)
at
co.elastic.clients.elasticsearch.indices.CreateIndexRequest$Builder.settings(CreateIndexRequest.java:359)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexHelper.createIndexRequest(ElasticIndexHelper.java:82)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexWriter.provisionIndex(ElasticIndexWriter.java:188)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexWriter.<init>(ElasticIndexWriter.java:88)
at
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexWriterFactory.newInstance(ElasticIndexWriterFactory.java:47)
at
org.apache.jackrabbit.oak.index.indexer.document.ElasticIndexerProvider.getIndexer(ElasticIndexerProvider.java:68)
at
org.apache.jackrabbit.oak.index.indexer.document.DocumentStoreIndexerBase.prepareIndexers(DocumentStoreIndexerBase.java:546)
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)