Cannot upgrade 6.1.0 to 6.1.2

(Sergei Dauletau) #1

We have elasticsearch 6.1.0 with custom default similarity.

Trying to upgrade from 6.1.0 to 6.1.2 and getting error when starting elasticsearch.

Caused by: java.lang.IllegalArgumentException: Unknown Similarity type [CustomSimilarityProvider] for [default]
	at org.elasticsearch.index.similarity.SimilarityService.<init>( ~[elasticsearch-6.1.2.jar:6.1.2]
	at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.checkMappingsCompatibility( ~[elasticsearch-6.1.2.jar:6.1.2]
	at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.upgradeIndexMetaData( ~[elasticsearch-6.1.2.jar:6.1.2]

It looks, like the exception is from this code.

Should the check be

if ((similarities.containsKey(typeName) == false || BUILT_IN.containsKey(typeName)) == false)

(Ivan Brusic) #2

I think this might be fixed in 6.2:

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.