Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

ConcurrencyError in logging using JRuby #188

Open
carlossg opened this Issue · 0 comments

1 participant

@carlossg

Using jruby-1.6.5 with log enabled, and dm-core-1.1.0 (1.2.0 has the same logger.rb file) I get continuous stack traces in the console

DataMapper::Logger.new("log/datamapper.log", :debug) 

Trace:

ConcurrencyError - Detected invalid array contents due to unsynchronized modifications with concurrent users:
    org/jruby/RubyArray.java:1153:in `<<'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-core-1.1.0/lib/dm-core/support/logger.rb:150:in `<<'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-core-1.1.0/lib/dm-core/support/logger.rb:204:in `error'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:278:in `with_connection'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:276:in `with_connection'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:141:in `read'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-core-1.1.0/lib/dm-core/repository.rb:162:in `read'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-core-1.1.0/lib/dm-core/collection.rb:1117:in `lazy_load'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-core-1.1.0/lib/dm-core/support/lazy_array.rb:409:in `each'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-core-1.1.0/lib/dm-core/collection.rb:504:in `each'
    org/jruby/RubyEnumerable.java:705:in `collect'
    /Users/csanchez/.rvm/gems/jruby-1.6.5/gems/dm-serializer-1.1.0/lib/dm-serializer/to_json.rb:85:in `to_json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.