[
https://issues.apache.org/jira/browse/METAMODEL-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14374903#comment-14374903
]
Kasper Sørensen commented on METAMODEL-124:
-------------------------------------------
I agree, but we only release one artifact so users wouldn't have that choice
unless we ask them to build their own from source.
Since it is only for drop table and not something very common like query or
insert, I think a little reflection doesn't hurt.
> ElasticSearch 0.9 and 1.4 compatibilty issues prevail
> -----------------------------------------------------
>
> Key: METAMODEL-124
> URL: https://issues.apache.org/jira/browse/METAMODEL-124
> Project: Apache MetaModel
> Issue Type: Bug
> Affects Versions: 4.3.2
> Reporter: Kasper Sørensen
> Assignee: Kasper Sørensen
>
> I was curious to check the compatibility issues with ElasticSearch versions,
> and uncovered a few more issues:
> {code}
> java.lang.NoSuchMethodError:
> org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingRequestBuilder.setType(Ljava/lang/String;)Lorg/elasticsearch/action/admin/
> indices/mapping/delete/DeleteMappingRequestBuilder;
> at
> org.apache.metamodel.elasticsearch.ElasticSearchDropTableBuilder.execute(ElasticSearchDropTableBuilder.java:58)
> at org.apache.metamodel.drop.DropTable.run(DropTable.java:65)
> at
> org.apache.metamodel.elasticsearch.ElasticSearchDataContext.executeUpdate(ElasticSearchDataContext.java:423)
> at
> org.apache.metamodel.elasticsearch.ElasticSearchDataContextTest.testUpdateRow(ElasticSearchDataContextTest.java:352)
> testDropTable(org.apache.metamodel.elasticsearch.ElasticSearchDataContextTest)
> Time elapsed: 0.016 sec <<< ERROR!
> java.lang.NoSuchMethodError:
> org.elasticsearch.action.admin.indices.mapping.delete.DeleteMappingRequestBuilder.setType(Ljava/lang/String;)Lorg/elasticsearch/action/admin/
> indices/mapping/delete/DeleteMappingRequestBuilder;
> at
> org.apache.metamodel.elasticsearch.ElasticSearchDropTableBuilder.execute(ElasticSearchDropTableBuilder.java:58)
> at org.apache.metamodel.drop.DropTable.run(DropTable.java:65)
> at
> org.apache.metamodel.elasticsearch.ElasticSearchDataContext.executeUpdate(ElasticSearchDataContext.java:423)
> at
> org.apache.metamodel.elasticsearch.ElasticSearchDataContextTest.testDropTable(ElasticSearchDataContextTest.java:368)
> {code}
> To reproduce: build with java 6 (elasticsearch 0.9) but run tests with java 8
> (elasticsearch 1.4).
> {code}
> cd metamodel/elasticsearch
> set JAVA_HOME=[your JDK6 home]
> mvn clean install
> set JAVA_HOME=[your JDK8 home]
> mvn test
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)