Skip to content

Instantly share code, notes, and snippets.

@headius
Created October 21, 2016 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/a137448dbc6c6b845128c6deb6d5d227 to your computer and use it in GitHub Desktop.
Save headius/a137448dbc6c6b845128c6deb6d5d227 to your computer and use it in GitHub Desktop.
Failures in actioncable due to concurrent-ruby Semaphore bug
1) Error:
ClientTest#test_single_client:
ArgumentError: count must be in integer greater than zero
com/concurrent_ruby/ext/JavaSemaphoreLibrary.java:43:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:85:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:177:in `websocket_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:186:in `block in test_single_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:72:in `with_puma_server'
/Users/headius/projects/rails/actioncable/test/client_test.rb:185:in `test_single_client'
2) Error:
ClientTest#test_disappearing_client:
ArgumentError: count must be in integer greater than zero
com/concurrent_ruby/ext/JavaSemaphoreLibrary.java:43:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:85:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:177:in `websocket_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:237:in `block in test_disappearing_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:72:in `with_puma_server'
/Users/headius/projects/rails/actioncable/test/client_test.rb:236:in `test_disappearing_client'
3) Error:
ClientTest#test_interacting_clients:
ArgumentError: count must be in integer greater than zero
com/concurrent_ruby/ext/JavaSemaphoreLibrary.java:43:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:85:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:177:in `websocket_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:198:in `block in test_interacting_clients'
/Users/headius/projects/rails/actioncable/test/client_test.rb:181:in `block in concurrently'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
com/concurrent_ruby/ext/SynchronizationLibrary.java:174:in `synchronize'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/executor/safe_task_executor.rb:19:in `execute'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/ivar.rb:170:in `safe_execute'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/future.rb:52:in `block in execute'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/executor/java_executor_service.rb:94:in `run'
4) Error:
ClientTest#test_unsubscribe_client:
ArgumentError: count must be in integer greater than zero
com/concurrent_ruby/ext/JavaSemaphoreLibrary.java:43:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:85:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:177:in `websocket_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:259:in `block in test_unsubscribe_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:72:in `with_puma_server'
/Users/headius/projects/rails/actioncable/test/client_test.rb:255:in `test_unsubscribe_client'
5) Error:
ClientTest#test_server_restart:
ArgumentError: count must be in integer greater than zero
com/concurrent_ruby/ext/JavaSemaphoreLibrary.java:43:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:85:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:177:in `websocket_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:280:in `block in test_server_restart'
/Users/headius/projects/rails/actioncable/test/client_test.rb:72:in `with_puma_server'
/Users/headius/projects/rails/actioncable/test/client_test.rb:279:in `test_server_restart'
6) Error:
ClientTest#test_many_clients:
ArgumentError: count must be in integer greater than zero
com/concurrent_ruby/ext/JavaSemaphoreLibrary.java:43:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:85:in `initialize'
/Users/headius/projects/rails/actioncable/test/client_test.rb:177:in `websocket_client'
/Users/headius/projects/rails/actioncable/test/client_test.rb:221:in `block in test_many_clients'
/Users/headius/projects/rails/actioncable/test/client_test.rb:181:in `block in concurrently'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
com/concurrent_ruby/ext/SynchronizationLibrary.java:174:in `synchronize'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/executor/safe_task_executor.rb:19:in `execute'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/ivar.rb:170:in `safe_execute'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/future.rb:52:in `block in execute'
/Users/headius/projects/jruby/lib/ruby/gems/shared/gems/concurrent-ruby-1.0.2-java/lib/concurrent/executor/java_executor_service.rb:94:in `run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment