shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

BatchPreparedStatementExecutor ArrayIndexOutOfBoundsException!

Open CodingJabber opened this issue 1 year ago • 2 comments

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

4.0.0-RC1

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-JDBC

Expected behavior

execute success

Actual behavior

throw java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.shardingsphere.shardingjdbc.executor.BatchPreparedStatementExecutor.accumulate(BatchPreparedStatementExecutor.java:192)

Reason analyze (If you can)

this is same object, but not equals, I do not know why?It resulted in no SQL being executed, subsequently causing an exception when attempting to retrieve the affected count. image

I think these two have the same problem: #1419 #8577

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

CodingJabber avatar Mar 29 '24 21:03 CodingJabber

Hi @CodingJabber, can you try the latest 5.4.1? 4.0.0 is too old.

strongduanmu avatar Mar 30 '24 11:03 strongduanmu

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

github-actions[bot] avatar Apr 29 '24 20:04 github-actions[bot]

Closed due to no response. If this problem persists, please reopen it or submit a new one.

RaigorJiang avatar May 06 '24 14:05 RaigorJiang