mongoid/moped — pull request #62 by lowang (2012-08-16 12:22:18+00:00)
Title: IOError: closed stream

we've got that exception on moped 1.2.0 on jruby-1.6.7.2 in Torquebox processor while trying to execute atomic update:

org/jruby/RubyKernel.java:782 → select
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/connection.rb:155 → alive?
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/connection.rb:198 → write
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/connection.rb:139 → write
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:517 → flush
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:123 → ensure_connected
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:516 → flush
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:531 → logging
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:515 → flush
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:504 → process
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:432 → update
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/session/context.rb:76 → update
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/session/context.rb:109 → with_node
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/cluster.rb:150 → with_primary
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/node.rb:168 → ensure_primary
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/cluster.rb:149 → with_primary
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/session/context.rb:108 → with_node
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/session/context.rb:69 → update
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/query.rb:306 → update
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/session.rb:305 → with
[GEM_ROOT]/gems/moped-1.2.0/lib/moped/query.rb:305 → update
[GEM_ROOT]/gems/mongoid-3.0.3/lib/mongoid/persistence/atomic/operation.rb:111 → execute
[GEM_ROOT]/gems/mongoid-3.0.3/lib/mongoid/persistence/atomic/inc.rb:22 → persist
[GEM_ROOT]/gems/mongoid-3.0.3/lib/mongoid/persistence/atomic/operation.rb:78 → prepare
[GEM_ROOT]/gems/mongoid-3.0.3/lib/mongoid/persistence/atomic/inc.rb:19 → persist
[GEM_ROOT]/gems/mongoid-3.0.3/lib/mongoid/persistence/atomic.rb:82 → inc