-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminating a connection result in Encoding error and indefinite block statement. #38
Comments
That looks like jruby-pg was compiled against a version of JRuby that had that "RubyEncoding.newEncoding" method. I have not determined where that method came from or where it went, but it doesn't appear to exist in the jruby-9.1 branch. We'll need to try recompiling jruby-pg against a current JRuby and see why it's using this method. I don't think it's the right thing to be calling in any case. |
Thanks, @headius. I'll check the above behaviour with JRuby-9.1 branch
|
You could try to build pg against a recent JRuby. I have not built it in a while and I'm suffering from jet lag so I can't help you do that tonight, but perhaps tomorrow :-) |
@headius Tested this under JRuby-9.1.5.0 Same result. Other than the Encoding issue the PG client seem to block execution for an indefinite period when an |
@meetme2meat 9.1.5.0 is still 10 releases behind current JRuby. Are you having trouble installin 9.1.15.0? |
@headius No trouble installing jruby 9.1.5.0 as such but when tested the above behaviour under 9.1.5.0 the Let me know If I fail to understand something your last comment. |
I'm sorry, you are still saying "9.1.5.0" when I am saying "9.1.15.0". Let's make this easier: please install JRuby 9.1.16.0, which is now the current release 😄 |
The issue is related to
pg_jruby (0.17.1 java)
Tested with JRuby 9.0.5.0 and ...Terminating the Postgres connection result in (encoding) error type different from the one obtained in ruby
pg
.(first time).Re-Running the SQL statement on already terminated connection result in indefinite blocking again a behaviour much different from ruby
pg
.Ruby PG behaviour
Jruby pg behaviour
Running the SQL statement 2nd time result indefinite block of the running program.
If the connection is closed by the client then the JRuby pg End result is same as Ruby pg.
The text was updated successfully, but these errors were encountered: