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
I now know batches of raw queries are not supported yet. The application I'm working on is using them and it's making the proxy panic.
When we send a batch of raw queries, we see an error like this for every statement in the batch:
{"level":"error","time":"2024-10-22T18:06:56.787Z","caller":"proxy/proxy.go:1028","msg":"Item is not of type [16]byte","stacktrace":"github.com/ollionorg/cassandra-to-spanner-proxy/third_party/datastax/proxy.(*client).handleBatch\n\t/go/src/cassandra-to-spanner-proxy/third_party/datastax/proxy/proxy.go:1028\ngithub.com/ollionorg/cassandra-to-spanner-proxy/third_party/datastax/proxy.(*client).Receive\n\t/go/src/cassandra-to-spanner-proxy/third_party/datastax/proxy/proxy.go:643\ngithub.com/ollionorg/cassandra-to-spanner-proxy/third_party/datastax/proxycore.(*Conn).read\n\t/go/src/cassandra-to-spanner-proxy/third_party/datastax/proxycore/conn.go:114"}
Then we see a panic like this and the proxy has to be restarted:
I get that we are trying to do something that is documented as not being supported, but I think the DX could be improved with a helpful error message instead of just panicking. Took us over an hour of debugging to figure out what was happening.
The text was updated successfully, but these errors were encountered:
I now know batches of raw queries are not supported yet. The application I'm working on is using them and it's making the proxy panic.
When we send a batch of raw queries, we see an error like this for every statement in the batch:
Then we see a panic like this and the proxy has to be restarted:
I get that we are trying to do something that is documented as not being supported, but I think the DX could be improved with a helpful error message instead of just panicking. Took us over an hour of debugging to figure out what was happening.
The text was updated successfully, but these errors were encountered: