Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1838

pool_size not being set in some cases

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.4.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In our app we use sidekiq to process async jobs. For this to work well I've set pool_size to 35 using the latest mongo driver (1.6.1). It works well for all jobs except two types that complain with this error:

      ``ruby
      could not obtain connection within 5.0 seconds. The max pool size is currently 1; consider increasing the pool size or timeout.
      `

      The model I'm calling the find on inside the worker is the base class for STI if that helps.

      Here's the full stack trace:
      https://gist.github.com/43a1b0b63749229220b6

            Assignee:
            Unassigned Unassigned
            Reporter:
            fbjork Fredrik Björk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None