{"action":"closed","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/1243","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/1243/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/1243/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/1243/events","html_url":"https://github.com/jruby/jruby/issues/1243","id":22969422,"number":1243,"title":"FiberError, ThreadError on JDK 1.7, JRuby 1.7.8, Rails 3.2.14, CentOS 6.4, using HTTP Streaming","user":{"login":"glendonmccreary","id":2029787,"avatar_url":"https://avatars.githubusercontent.com/u/2029787?v=3","gravatar_id":"","url":"https://api.github.com/users/glendonmccreary","html_url":"https://github.com/glendonmccreary","followers_url":"https://api.github.com/users/glendonmccreary/followers","following_url":"https://api.github.com/users/glendonmccreary/following{/other_user}","gists_url":"https://api.github.com/users/glendonmccreary/gists{/gist_id}","starred_url":"https://api.github.com/users/glendonmccreary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glendonmccreary/subscriptions","organizations_url":"https://api.github.com/users/glendonmccreary/orgs","repos_url":"https://api.github.com/users/glendonmccreary/repos","events_url":"https://api.github.com/users/glendonmccreary/events{/privacy}","received_events_url":"https://api.github.com/users/glendonmccreary/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/11","html_url":"https://github.com/jruby/jruby/milestones/Invalid%20or%20Duplicate","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/11/labels","id":350035,"number":11,"title":"Invalid or Duplicate","description":"Bugs that are duplicates, not actually bugs, or user mistakes should go here.","creator":{"login":"headius","id":10135,"avatar_url":"https://avatars.githubusercontent.com/u/10135?v=3","gravatar_id":"","url":"https://api.github.com/users/headius","html_url":"https://github.com/headius","followers_url":"https://api.github.com/users/headius/followers","following_url":"https://api.github.com/users/headius/following{/other_user}","gists_url":"https://api.github.com/users/headius/gists{/gist_id}","starred_url":"https://api.github.com/users/headius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headius/subscriptions","organizations_url":"https://api.github.com/users/headius/orgs","repos_url":"https://api.github.com/users/headius/repos","events_url":"https://api.github.com/users/headius/events{/privacy}","received_events_url":"https://api.github.com/users/headius/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":453,"state":"open","created_at":"2013-06-06T19:52:53Z","updated_at":"2016-05-11T20:44:23Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2013-11-20T03:49:13Z","updated_at":"2016-05-11T20:44:23Z","closed_at":"2016-05-11T20:44:23Z","body":"I have a Rails 3.2.14 application that's using http streaming that was working fine with the combination of:\r\nJDK 1.6\r\nJRuby 1.7.4\r\non CentOS 6.4.\r\n\r\nWe wanted to upgrade to JDK 1.7, which then resulted in a large number of FiberError exceptions in our local development (Mac OSX 10.9). Upgrading to the latest JRuby resolved the problem in our local environment, but not in our CentOS 6.4 environment.\r\n\r\nThe code in question is essentially this:\r\n```\r\nclass SomeController < ApplicationController\r\n  ...\r\n  def index\r\n    ...\r\n    render stream: true\r\n  end\r\nend\r\n```\r\n\r\nCommenting out the \"render stream: true\" makes the FiberErrors and related ThreadErrors disappear, but we'd ideally like to keep streaming on if possible.\r\n\r\nWe're seeing the following errors with http streaming turned on:\r\n```\r\n2013-11-19 16:51:08.481 [INFO]  Rendered common/_footer.html.slim (5.0ms) (pid:20813)\r\n2013-11-19 16:51:08.483 [FATAL] FiberError (dead fiber called):\r\n  org/jruby/ext/fiber/ThreadFiber.java:58:in `resume'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:101:in `delayed_render'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:70:in `delayed_render'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:56:in `render_template'\r\n  org/jruby/RubyProc.java:290:in `call'\r\n  org/jruby/RubyProc.java:271:in `call'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:23:in `each'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rack-1.4.5/lib/rack/chunked.rb:23:in `each'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_dispatch/http/response.rb:44:in `each'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_dispatch/http/response.rb:115:in `body'\r\n  /data/jenkins/workspace/JRuby JDK Upgrade/spec/controllers/search_controller_spec.rb:26:in `(root)'\r\n  org/jruby/RubyBasicObject.java:1536:in `instance_eval'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:114:in `run'\r\n  org/jruby/RubyProc.java:290:in `call'\r\n  org/jruby/RubyProc.java:271:in `call'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-rails-2.13.2/lib/rspec/rails/example/controller_example_group.rb:160:in `ControllerExampleGroup'\r\n  org/jruby/RubyBasicObject.java:1565:in `instance_exec'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:247:in `instance_eval_with_args'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/hooks.rb:87:in `run'\r\n  org/jruby/RubyProc.java:290:in `call'\r\n  org/jruby/RubyProc.java:271:in `call'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/hooks.rb:85:in `run'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/hooks.rb:418:in `run_hook'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:329:in `run_around_each_hooks'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:256:in `with_around_each_hooks'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:111:in `run'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:390:in `run_examples'\r\n  org/jruby/RubyArray.java:2400:in `collect'\r\n  org/jruby/RubyArray.java:2413:in `map'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:386:in `run_examples'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:371:in `run'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:372:in `run'\r\n  org/jruby/RubyArray.java:2400:in `collect'\r\n  org/jruby/RubyArray.java:2413:in `map'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:372:in `run'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:in `run'\r\n  org/jruby/RubyArray.java:2400:in `collect'\r\n  org/jruby/RubyArray.java:2413:in `map'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:in `run'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/reporter.rb:34:in `report'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:25:in `run'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in `run'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `autorun'\r\n  org/jruby/RubyProc.java:290:in `call'\r\n  org/jruby/RubyProc.java:228:in `call' (pid:20813)\r\n```\r\n\r\n```\r\n2013-11-19 16:52:13.668 [INFO]  Rendered common/_footer.html.slim (5.0ms) (pid:20844)\r\n2013-11-19 16:52:13.670 [INFO]  Rendered search/index.html.slim within layouts/application (812.0ms) (pid:20844)\r\n2013-11-19 16:52:13.670 [FATAL] ThreadError (queue shut down):\r\n  org/jruby/ext/thread/SizedQueue.java:121:in `push'\r\n  org/jruby/ext/fiber/ThreadFiber.java:82:in `resume'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:101:in `delayed_render'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:70:in `delayed_render'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:56:in `render_template'\r\n  org/jruby/RubyProc.java:290:in `call'\r\n  org/jruby/RubyProc.java:271:in `call'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_view/renderer/streaming_template_renderer.rb:23:in `each'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rack-1.4.5/lib/rack/chunked.rb:23:in `each'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/actionpack-3.2.14/lib/action_dispatch/http/response.rb:44:in `each'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rack-1.4.5/lib/rack/body_proxy.rb:31:in `each'\r\n  /var/lib/jenkins/.bundle/jruby/1.9/gems/rack-1.4.5/lib/rack/handler/webrick.rb:71:in `service'\r\n  /var/lib/jenkins/.rvm/rubies/jruby-1.7.8/lib/ruby/1.9/webrick/httpserver.rb:138:in `service'\r\n  /var/lib/jenkins/.rvm/rubies/jruby-1.7.8/lib/ruby/1.9/webrick/httpserver.rb:94:in `run'\r\n  /var/lib/jenkins/.rvm/rubies/jruby-1.7.8/lib/ruby/1.9/webrick/server.rb:191:in `start_thread'\r\n  org/jruby/RubyProc.java:290:in `call'\r\n  org/jruby/RubyProc.java:228:in `call' (pid:20844)\r\n```\r\n\r\nI'm curious to see if anyone else has experienced similar issues, and what the fix might be for this. Thanks!"}}