[
https://issues.apache.org/jira/browse/METAMODEL-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14374900#comment-14374900
]
Dennis Du Krøger commented on METAMODEL-124:
--------------------------------------------
Hmmm, I don't mind the patch as such, but isn't this a bit of a downward spiral
for something that could/should be taken care of by documentation? As in "don't
run Java 6 compiled version of MM-ES with ES 1.4?"
The code is getting slower and less readable every time we do this, and at some
point we have to draw the line, or we will end up with a complete
reflection-based glue layer.
> 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)