Re: “Failed to communicate with Ignite cluster" error when using JDBC Thin driver
Hi, It's hard to say why it happens. I'm not familiar with mybatis and actually don't know if it shares jdbc connection between threads. It would be great if you could provide some reproducible example that will help to debug the issue. Thanks! -Dmitry -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: “Failed to communicate with Ignite cluster" error when using JDBC Thin driver
We are using mybatis to manage connection, is that matters? BTW, I check the code in JdbcThinTcpIo method sendRequest JdbcResponse sendRequest(JdbcRequest req) throws IOException { int cap = guessCapacity(req); BinaryWriterExImpl writer = new BinaryWriterExImpl(null, new BinaryHeapOutputStream(cap), null, null); req.writeBinary(writer); send(writer.array()); BinaryReaderExImpl reader = new BinaryReaderExImpl(null, new BinaryHeapInputStream(read()), null, null, false); JdbcResponse res = new JdbcResponse(); res.readBinary(reader); return res; } After send() execute, run read() immediately. Is that might introduce synchronized issue? The msg not come back from server when read it from client out? As in our test env, the insert action has big chance to success after several times retry. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: “Failed to communicate with Ignite cluster" error when using JDBC Thin driver
Is there any case that you're using Connection in more than one thread? It's not thread safe for now. Thanks! -Dmitry -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: “Failed to communicate with Ignite cluster" error when using JDBC Thin driver
It could not be a version issue, the thin driver and cluster version are exactly same. It can happened on any query but can not be reproduce 100%, it only happened "some times". In Log, I found "Caused by: java.io.IOException: Failed to read incoming message (not enough data). " Firstly I guess the passing parms does not match with what defined in SQL, but it not the case after double check. So, any idea about it? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: “Failed to communicate with Ignite cluster" error when using JDBC Thin driver
Hi, Is it possible that version of thin driver is different from version of cluster nodes? Does it happen on concrete queries or it could be on any one? Thanks! -Dmitry -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/