Git Product home page Git Product logo

Comments (4)

danielberkompas avatar danielberkompas commented on August 19, 2024

@jhonathas According to the Elasticsearch docs, this should only happen when you write the same document to an index twice, while specifying the ?version parameter. The ?version querystring parameter tells Elasticsearch to reject writes if the _version field in the document is different than the one in the query string.

https://www.elastic.co/guide/en/elasticsearch/guide/current/optimistic-concurrency-control.html

Some questions that will help nail this down:

  • What version of Elasticsearch are you using?
  • Are you including _version in your documents? (In the Elasticsearch.Document implementations)

from elasticsearch-elixir.

jhonathas avatar jhonathas commented on August 19, 2024

Hi,
My elastic search version, is: 6.5.2.

Follow print from my document.

The example of the error that I had presented was of the ProfileDocument, but since it is giving error in others also, follows print of the document. I do not use version inside.

image

Taking advantage, an error that gives several times and it may be that one error has connection with the other is this error here:

image

image

Thank you very much for the help

from elasticsearch-elixir.

jhonathas avatar jhonathas commented on August 19, 2024

The error continues. From what I saw the error happens here -

https://github.com/danielberkompas/elasticsearch-elixir/blob/master/lib/elasticsearch/indexing/bulk.ex#L111

And when it goes from there, it gives error here -

https://github.com/danielberkompas/elasticsearch-elixir/blob/master/lib/elasticsearch/indexing/index.ex#L147

These are the 2 code locations that time out.

I tried to do this in the store:

   @impl true
   def transaction (fun) do
     {: ok, result} = Repo.transaction(fun, pool_timeout: :infinity, timeout: :infinity)
     result
   end

But it did not resolve.

I am indexing 964,000 lines from postgres.

Any idea?

from elasticsearch-elixir.

danielberkompas avatar danielberkompas commented on August 19, 2024

@jhonathas I'm sorry you're still experiencing this issue. Unfortunately, I don't have a clear idea what might be causing it. :-( Happy for anyone to help with this who can.

from elasticsearch-elixir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.