You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a re-post of a bug listed in the CodeHaus bug tracker (JRUBY-6022) that still affects 1.7.18.
When a large number of files are open without closing the handles, the user receives an EACCES exception. This is not the case with cruby. Code used to demonstrate difference between jruby and cruby below.
[02:22 AM] jbeyer@cervelo :: ~ $ cat test.rb
Dir.glob( '/cervelo/Warehouse/*/*' ) do |f_name|
f = File.open( f_name )
end
[02:22 AM] jbeyer@cervelo :: ~ $ rvm use jruby-1.7.18
Using /usr/local/rvm/gems/jruby-1.7.18
[02:22 AM] jbeyer@cervelo :: ~ $ ruby test.rb
Errno::EACCES: Permission denied - /cervelo/Warehouse/MSW/07-10-02.csv
initialize at org/jruby/RubyFile.java:362
open at org/jruby/RubyIO.java:1177
(root) at test.rb:2
glob at org/jruby/RubyDir.java:242
(root) at test.rb:1
[02:22 AM] jbeyer@cervelo :: ~ $ rvm use ruby-2.1.5
Using /usr/local/rvm/gems/ruby-2.1.5
[02:22 AM] jbeyer@cervelo :: ~ $ ruby test.rb
[02:22 AM] jbeyer@cervelo :: ~ $
The text was updated successfully, but these errors were encountered:
This is a re-post of a bug listed in the CodeHaus bug tracker (JRUBY-6022) that still affects 1.7.18.
When a large number of files are open without closing the handles, the user receives an EACCES exception. This is not the case with cruby. Code used to demonstrate difference between jruby and cruby below.
The text was updated successfully, but these errors were encountered: