-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
pgwire panics when opening a connection from jdbc.postgresql #3819
Comments
I don't know what kind of sql logging we might have already, but a lot of our objects implement |
A full dump of the network traffic is helpful for things like this: |
Also from that line number, my guess is that it's trying to query the default transaction isolation level outside a transaction. |
So see the attachment net.txt Indeed there is a "show transaction isolation level" as first statement and that causes the server to terminate the TCP connection. On the other hand I confirm I can also enter this statement (and get a valid answer) from |
The The panic is very strange. Every SQL statement is executed within a transaction. If not an user specified transaction, then an automatically created/committed one. @mjibson: Can you take a look at this? |
This may be related to the server-side crashes I'm encountering when using |
How to reproduce (perhaps an idea to integrate in the test suite):
|
my failure is in the same place. I'm issuing a Last few log lines and trace:
Specifically, it's going into |
to clarify: my
On the wire, this turned into (wireshark postgres decoder):
I'm guessing the next packet was going to be the execute with actual args, but the server crashed first. |
So I am trying to get clojure (for jepsen, see #4036 ) to talk to cockroach via jdbc and
--insecure
.For this I use the standard Java org.postgresql JDBC driver (provided by postgres) version 9.4-1204-jdbc42 and clojure/java.jdbc 0.4.1 (JDK 8)
My JDBC object is instantiated with the following config:
Upon starting the client, the (Java) client fails with:
(then the client gives up)
After this happens, I observe the cockroach server has died with the following trace:
Not sure where to go from here. Is there a way to ask the server to emit the sql queries into its log / stderr?
The text was updated successfully, but these errors were encountered: