Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1191

max_message_size error after updating driver to 2.4.1

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.1
    • Component/s: None

      I keep getting this error after updating to 2.4.1:

      /usr/local/lib/ruby/2.4.0/forwardable.rb:228:in `max_message_size'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connectable.rb:114:in `block in read'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connectable.rb:97:in `ensure_connected'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connectable.rb:113:in `read'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection.rb:163:in `deliver'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection.rb:108:in `block in dispatch'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/monitoring/publishable.rb:47:in `publish_command'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection.rb:107:in `dispatch'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/operation/executable.rb:37:in `block in execute'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server/connection_pool.rb:107:in `with_connection'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/server.rb:242:in `with_connection'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/operation/executable.rb:35:in `execute'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/collection/view/iterable.rb:81:in `send_initial_query'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/collection/view/iterable.rb:41:in `block in each'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/retryable.rb:51:in `read_with_retry'
      /usr/local/lib/ruby/gems/2.4.0/gems/mongo-2.4.1/lib/mongo/collection/view/iterable.rb:39:in `each'
      52:in `first'
      52:in `block in process_file'
      29:in `each_line'
      29:in `process_file'
      91:in `block in run_inner'
      85:in `each'
      85:in `run_inner'
      18:in `run'

      This error happens when I call any function on the results of a query (in this example it's 'first'). It doesn't happen all the time ... it's pretty random.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            refael@soom.la Refael Dakar
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: