Skip to content

Instantly share code, notes, and snippets.

@mbj
Created December 1, 2011 22:33
Show Gist options
  • Save mbj/1420392 to your computer and use it in GitHub Desktop.
Save mbj/1420392 to your computer and use it in GitHub Desktop.
dm validates far to much records
/home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/bson-1.5.1/lib/bson/bson_c.rb:28:in `new': Interrupt
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/bson-1.5.1/lib/bson/bson_c.rb:28:in `deserialize'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/networking.rb:211:in `read_documents'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/networking.rb:158:in `receive'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/networking.rb:123:in `receive_message'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/cursor.rb:508:in `send_get_more'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/cursor.rb:460:in `refresh'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/cursor.rb:128:in `next'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/cursor.rb:290:in `each'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/cursor.rb:308:in `to_a'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/mongo-1.5.1/lib/mongo/cursor.rb:308:in `to_a'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-mongo-adapter-9cef3077b44a/lib/dm-mongo-adapter/query.rb:105:in `find'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-mongo-adapter-9cef3077b44a/lib/dm-mongo-adapter/query.rb:34:in `read'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-mongo-adapter-9cef3077b44a/lib/dm-mongo-adapter/adapter.rb:43:in `block in read'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-mongo-adapter-9cef3077b44a/lib/dm-mongo-adapter/adapter.rb:254:in `block in with_collection'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-mongo-adapter-9cef3077b44a/lib/dm-mongo-adapter/adapter.rb:279:in `with_connection_management'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-mongo-adapter-9cef3077b44a/lib/dm-mongo-adapter/adapter.rb:253:in `with_collection'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-mongo-adapter-9cef3077b44a/lib/dm-mongo-adapter/adapter.rb:42:in `read'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/repository.rb:162:in `read'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/collection.rb:1117:in `lazy_load'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/associations/one_to_many.rb:298:in `lazy_load'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/support/lazy_array.rb:409:in `each'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/collection.rb:504:in `each'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:111:in `validate_child_relationship'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:89:in `block in validate_children'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:87:in `each'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:87:in `validate_children'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:70:in `validate'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation.rb:16:in `valid?'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:38:in `save_self'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1024:in `block (2 levels) in save_parents'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1021:in `map'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1021:in `block in save_parents'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1207:in `run_once'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1020:in `save_parents'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1024:in `block (2 levels) in save_parents'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1021:in `map'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1021:in `block in save_parents'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1207:in `run_once'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1020:in `save_parents'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:991:in `block in _save'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:1207:in `run_once'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:990:in `_save'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-core-5362d492a62b/lib/dm-core/resource.rb:390:in `save'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:33:in `block in save'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/context.rb:20:in `in_context'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-validations-6c451b520216/lib/data_mapper/validation/resource_extensions.rb:33:in `save'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/dm-annoing-modificators-d5c098da5a9a/lib/dm-annoing-modificators.rb:64:in `save_or_raise'
from /home/mbj/devel/foobar/lib/foobar/product.rb:204:in `save_or_raise_state'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:153:in `block (2 levels) in run_actions'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:153:in `each'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:153:in `block in run_actions'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:169:in `catch_exceptions'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:147:in `run_actions'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:132:in `run_callbacks'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:127:in `block in run_callbacks'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:420:in `before'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:239:in `block in run_callbacks'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:341:in `block in pausable'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:341:in `catch'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:341:in `pausable'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:239:in `run_callbacks'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:126:in `run_callbacks'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:63:in `block (2 levels) in perform'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:63:in `catch'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:63:in `block in perform'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:181:in `block in within_transaction'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:220:in `block in within_transaction'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/machine.rb:1845:in `within_transaction'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:219:in `within_transaction'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:180:in `within_transaction'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition_collection.rb:62:in `perform'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/transition.rb:212:in `perform'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/event.rb:172:in `fire'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/event.rb:241:in `block in add_actions'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/machine.rb:753:in `call'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/bundler/gems/state_machine-a19d1657e08a/lib/state_machine/machine.rb:753:in `block (2 levels) in define_helper'
from /home/mbj/devel/foobar/lib/foobar/product.rb:165:in `assign_attributes_and_save'
from /home/mbj/devel/foobar/lib/foobar/product_import.rb:18:in `import'
from /home/mbj/devel/foobar/lib/foobar/barfoo.rb:9:in `import_barfoo_price_hash'
from /home/mbj/devel/foobar/lib/foobar/import_controller.rb:92:in `process_job'
from /home/mbj/devel/foobar/lib/foobar/import_controller.rb:29:in `block in run'
from /home/mbj/devel/foobar/lib/foobar/import_controller.rb:28:in `loop'
from /home/mbj/devel/foobar/lib/foobar/import_controller.rb:28:in `run'
from /home/mbj/devel/foobar/lib/foobar/import_controller.rb:64:in `import_barfoo_prices_file'
from /home/mbj/devel/foobar/lib/foobar/cli.rb:147:in `block in import_barfoo_prices_simple'
from /home/mbj/devel/foobar/lib/foobar/cli.rb:200:in `block in run_cli'
from /home/mbj/devel/foobar/lib/foobar/application.rb:28:in `run'
from /home/mbj/devel/foobar/lib/foobar/cli.rb:199:in `run_cli'
from /home/mbj/devel/foobar/lib/foobar/cli.rb:146:in `import_barfoo_prices_simple'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /home/mbj/devel/foobar/vendor/ruby/1.9.1/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment