tarantool / tarantool-idea-plugin

Tarantool support plugin for Intellij Platform
Other
10 stars 2 forks source link

update fails, with no update on the wire #34

Open neopaf opened 2 years ago

neopaf commented 2 years ago

To Reproduce

  1. Opened test database with pre-created table and record
  2. edited record
  3. SQL.exception without details

Expected behavior updated record

Screenshots

Снимок экрана 2021-11-12 в 13 10 57 Снимок экрана 2021-11-12 в 13 11 00

Desktop (please complete the following information):

Additional info

Captured exchange during update, but see no update at all. Just "SELECT 1"

neopaf commented 2 years ago

tarantool-fail.zip

neopaf commented 2 years ago

idea.log has

2021-11-12 13:21:34,067 [  76487]   WARN - ellij.database.util.DbImplUtil - Read-only mode is not supported. Dbms: TARANTOOL 
java.sql.SQLException
    at org.tarantool.jdbc.SQLConnection.setReadOnly(SQLConnection.java:279)
    at com.intellij.database.remote.jdbc.impl.RemoteConnectionImpl.setReadOnly(RemoteConnectionImpl.java:81)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
neopaf commented 2 years ago

but this does not correlate with problem time. just some other problem, probably.

neopaf commented 2 years ago

Снимок экрана 2021-11-12 в 13 23 06

neopaf commented 2 years ago

Снимок экрана 2021-11-12 в 13 25 30

neopaf commented 2 years ago

tried both connection modes

Periecle commented 2 years ago

Hi, @neopaf. We will investigate your issue. What Tarantool(DB itself) version you are using?

neopaf commented 2 years ago
[root@tv-vravm081 ~]# tarantool -v
Tarantool 2.8.2-0-gfc96d10

my main worry is that there is no update command on the wire during update request from IDE. and I can't seem to see any details on this obscure sql exception in idea.log

I guess, first step is to add those exception details.

maybe I could help debugging this somehow, if I'll attach intellj debugger to datagrip process and try to intercept that exception and try to look into it's message/stacktrace... I'll see

neopaf commented 2 years ago

tried but failed. as soon as I attach IDEA to DG the latter hangs (even though it is not paused in IDEA debugger). not enough experience here :(

neopaf commented 2 years ago

Снимок экрана 2021-11-12 в 15 34 37

"submit" on the left is not clickable while debugger on the right is attached :(