Skip to content

ConcurrencyError: No message available #539

@fedenusy

Description

@fedenusy

I use futures to load data from my DB in parallel. Then I wait for all futures to complete. Most of the time this works just fine, but occasionally I see the following error:

ConcurrencyError: No message available
File "com/concurrent_ruby/ext/SynchronizationLibrary.java" line 198 in ns_wait
File "/home/app/vendor/bundle/jruby/2.2.0/gems/concurrent-ruby-1.0.1-java/lib/concurrent/synchronization/abstract_lockable_object.rb" line 43 in ns_wait_until
File "/home/app/vendor/bundle/jruby/2.2.0/gems/concurrent-ruby-1.0.1-java/lib/concurrent/atomic/event.rb" line 67 in block in wait
File "com/concurrent_ruby/ext/SynchronizationLibrary.java" line 174 in synchronize
File "/home/app/vendor/bundle/jruby/2.2.0/gems/concurrent-ruby-1.0.1-java/lib/concurrent/atomic/event.rb" line 64 in wait
File "/home/app/vendor/bundle/jruby/2.2.0/gems/concurrent-ruby-1.0.1-java/lib/concurrent/concern/obligation.rb" line 75 in wait
File "/home/app/vendor/bundle/jruby/2.2.0/gems/concurrent-ruby-1.0.1-java/lib/concurrent/concern/obligation.rb" line 66 in value

What does this error mean, and how can I fix it?


Tasks

  • fix edge futures - @pitr-ch
  • audit rest of the gem - @pitr-ch
  • when source of interruption is identified, handle ConcurrencyError properly in LockableObject - @pitr-ch

Metadata

Metadata

Assignees

Labels

bugA bug in the library or documentation.not-appliedThe bug/enhacement was closed and not fixed/implemented.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions