-
Notifications
You must be signed in to change notification settings - Fork 807
Closed
Description
Libraries
Elasticsearch -> 6.8.0
elasticsearch-persistence -> 7.0.0.pre
Summary
When using the upgraded elasticsearch-rails
gem alongside an old cluster causes some errors. This may be expected since they are major version changes, but in case backward compatibility is possible I'm posting this error.
The following error is triggered when calling repository.create_index!
Elasticsearch::Transport::Transport::Errors::InternalServerError:
[500] {"error":{"root_cause":[{"type":"class_cast_exception","reason":"java.util.ArrayList cannot be cast to java.util.Map"}],"type":"class_cast_exception","reason":"java.util.ArrayList cannot be cast to java.util.Map"},"status":500}
Stack Trace:
/.rvm/gems/ruby-2.6.3/gems/elasticsearch-transport-7.1.0/lib/elasticsearch/transport/transport/base.rb:218:in `__raise_transport_error'
/.rvm/gems/ruby-2.6.3/gems/elasticsearch-transport-7.1.0/lib/elasticsearch/transport/transport/base.rb:338:in `perform_request'
/.rvm/gems/ruby-2.6.3/gems/elasticsearch-transport-7.1.0/lib/elasticsearch/transport/transport/http/faraday.rb:37:in `perform_request'
/.rvm/gems/ruby-2.6.3/gems/elasticsearch-transport-7.1.0/lib/elasticsearch/transport/client.rb:160:in `perform_request'
/.rvm/gems/ruby-2.6.3/gems/elasticsearch-api-7.1.0/lib/elasticsearch/api/namespace/common.rb:38:in `perform_request'
/.rvm/gems/ruby-2.6.3/gems/elasticsearch-api-7.1.0/lib/elasticsearch/api/actions/indices/create.rb:95:in `create'
/.rvm/gems/ruby-2.6.3/gems/elasticsearch-model-7.0.0.pre/lib/elasticsearch/model/indexing.rb:252:in `create_index!'
This error only began after upgrading to elasticsearch-persistence 7.0.0.pre
from 6.0.0
. I'd also like to note that this is only when using on an older cluster (6.8.0). The library works fine with elasticsearch 7
skycocker
Metadata
Metadata
Assignees
Labels
No labels