Giter Club home page Giter Club logo

Comments (3)

grosser avatar grosser commented on September 25, 2024

parallel does not use lock mutexes afaik, so it's somewhere in your code ?
can you produce a simple example that I can use as testcase ?

from parallel.

lvonk avatar lvonk commented on September 25, 2024

Hi,

It is not consistent behavior. The context is inserting a lot of records in a postges database for a load test. Last run resulted in a Segfault...

The code basically does this:

    Parallel.each(array_with_ids, in_processes: 4) do |id|
      event_store = EventStore.new
      ActiveRecord::Base.connection.reconnect!
      begin
        event_store.replay_events_for(id)
      ensure
        ActiveRecord::Base.clear_active_connections!
      end

    end

The problems did not occur when running 1.9.3-p385, maybe it is unrelated to parallel but the segfaults and the error above do occur when running this process.

Versions:

  • parallel (0.9.0)
  • pg (0.17.0)
  • activerecord (3.2.15)

from parallel.

lvonk avatar lvonk commented on September 25, 2024

Hi,

It doesn't seem related to parallel since not running parallel has the same effect.

Closing this issue.

Lars

from parallel.

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.