Last active
August 29, 2015 13:56
-
-
Save nelsnelson/9284736 to your computer and use it in GitHub Desktop.
Occasionally, when I run this code in a multi-threaded environment, I observe the provided error when accessing for example apple.tags.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./tags.rb | |
apple | |
edible |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined method `push' for nil:NilClass | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/model/associations.rb:1231:in `def_many_to_many' | |
org/jruby/RubyArray.java:1617:in `each' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/model/associations.rb:1231:in `def_many_to_many' | |
org/jruby/RubyArray.java:1617:in `each' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/dataset/actions.rb:48:in `all' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/plugins/eager_each.rb:41:in `all' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/model/associations.rb:1223:in `def_many_to_many' | |
org/jruby/RubyProc.java:255:in `call' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/model/associations.rb:2187:in `eager_load' | |
org/jruby/RubyArray.java:1617:in `each' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/model/associations.rb:2151:in `eager_load' | |
org/jruby/RubyBasicObject.java:1715:in `__send__' | |
org/jruby/RubyKernel.java:2217:in `send' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/plugins/tactical_eager_loading.rb:47:in `load_associated_objects' | |
/usr/java/jruby-1.7.4/lib/ruby/gems/shared/gems/sequel-4.7.0/lib/sequel/model/associations.rb:1179:in `tags' | |
/tmp/tags.rb:80:in `tags' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment