Code Monkey home page Code Monkey logo

Comments (8)

benwtrent avatar benwtrent commented on September 18, 2024 1

@jpountz I will do that. But, keep the testing that provides the parallelism to ensure we are covered when things are enabled in the future

from lucene.

jpountz avatar jpountz commented on September 18, 2024

git bisect points to this commit: b940511

from lucene.

benwtrent avatar benwtrent commented on September 18, 2024

Intra merge concurrency is causing a race condition here it seems? I can debug where.

from lucene.

benwtrent avatar benwtrent commented on September 18, 2024

Reverting point value parallelism fixes this bug. This tells me that with how merging point values from multiple threads is busted. I will see if there is a quick fix. If there isn't I vote we do not merge points in parallel.

from lucene.

benwtrent avatar benwtrent commented on September 18, 2024

Ah, looking at the clone code for merge state @jpountz

    for (int i = 0; i < storedFieldsReaders.length; ++i) {
      if (storedFieldsReaders[i] != null) {
        storedFieldsReaders[i] = storedFieldsReaders[i].getMergeInstance();
      }
      if (termVectorsReaders[i] != null) {
        termVectorsReaders[i] = termVectorsReaders[i].getMergeInstance();
      }
      if (normsProducers[i] != null) {
        normsProducers[i] = normsProducers[i].getMergeInstance();
      }
      if (docValuesProducers[i] != null) {
        docValuesProducers[i] = docValuesProducers[i].getMergeInstance();
      }
      if (fieldsProducers[i] != null) {
        fieldsProducers[i] = fieldsProducers[i].getMergeInstance();
      }
      if (pointsReaders[i] != null) {
        pointsReaders[i] = pointsReaders[i].getMergeInstance();
      }
      if (knnVectorsReaders[i] != null) {
        knnVectorsReaders[i] = knnVectorsReaders[i].getMergeInstance();
      }
    }

This assumes getMergeInstance() does something. But points simply returns this.

I am thinking that sharing a reader between threads is always a bad idea.

from lucene.

jpountz avatar jpountz commented on September 18, 2024

Wow, thanks for finding this, it's indeed broken. I'll look into it.

from lucene.

benwtrent avatar benwtrent commented on September 18, 2024

@jpountz given the feature freeze of 9.12, what do you think of disabling intra-merge parallelism for everything :/ and we enable it one at a time for things in the future as wrinkles are worked out?

from lucene.

jpountz avatar jpountz commented on September 18, 2024

Agreed, this sounds safer with 9.12 around the corner.

from lucene.

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.