-
-
Notifications
You must be signed in to change notification settings - Fork 926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix exploded elasticsearch import #2963
Fix exploded elasticsearch import #2963
Conversation
@tiendo1011 can you please explain why is this change needed? |
Hi @simi, sr I meant this to be a WIP one, let me update the description for it, too. |
cf733a2
to
08140b3
Compare
Any idea about the CI problem? |
@simi it seems to me that it's from this method inside
Notice the call in The reason for this is that the I guess there is some mismatch here, is there a special reason that we need to set |
Can you try to do |
@simi sure thing. I've done it. |
It seems super effective :) Can you fix the rubocop problem? https://github.com/rubygems/rubygems.org/runs/5432855707?check_suite_focus=true Once done I think we're ready to merge. |
@simi nice :), I've fixed the rubocop problem |
…iguration (#2963)" This reverts commit c45be12. Fixes: Elasticsearch::UnsupportedProductError: The client noticed that the server is not a supported distribution of Elasticsearch. https://app.honeybadger.io/projects/40972/faults/84396370
Hi, this was reverted f78892a |
@sonalkr132 sad to hear. Any idea why specs were ok with this change? Which version of ES are we running at staging and which in production? |
I may have been too quick to say it was an update issue. Google the exception I added in revert commit. Looks like elasticsearch is intentionally breaking support for opensearch (aws).
We may need to migrate to https://opendistro.github.io/for-elasticsearch/ |
@sonalkr132 would be great start to upgrade docker-compose to use https://hub.docker.com/r/amazon/opendistro-for-elasticsearch? |
Someone needs to research this a bit. I am not sure if opensearch managed is using same docker image. opendistro and opensearch are two separate things(?). Ideally we should migrate to opesearch client as well at the same time. |
@sonalkr132 Any idea which version of OpenSearch is used on staging/production? |
Right now, running
bundle exec rake environment elasticsearch:import:all DIR=app/models FORCE=y
to setup the database as suggestion from this guide throw this error:It is caused by elasticsearch-rails gem, and is fixed in this PR, I upgrade the gem to fix this issue.