[CONJ-970] No records returned with useServerPrepStmts and large result size Created: 2022-05-05 Updated: 2022-05-23 Resolved: 2022-05-13 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.3.0, 2.7.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Manos Vekrakis | Assignee: | Diego Dupin |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
There is a bug that is apparent in multiple MariaDB versions, where records are not being returned if useServerPrepStmts is true and the batch size is >= 1000. What happens is that only the last batch is returned and all the previous ones are returned empty. MariaDB versions that trigger the bug: 10.3.34, 10.5.15, 10.6.7, 10.7.3, 10.8.2 You can find a Java class attached that can be used to demonstrate the bug on a MariaDB database. This basically populates a MariaDB table with seedCount ids. Then, it performs a query on that table in a sequence of operations, each covering a subset of the id values to be queried (called batchSize). Below, there are different executions of the BugDemo.java class that showcase the bug. The MariaDB version in this case is 10.5.15 and the seedCount is 2500. Case 1:
Case 2:
Case 3:
|
| Comments |
| Comment by Diego Dupin [ 2022-05-13 ] |
|
bug reproduced. |
| Comment by Diego Dupin [ 2022-05-13 ] |
|
Problem reside server side for recent version: I've create the issue Thank again for reproductible example ! |
| Comment by Manos Vekrakis [ 2022-05-16 ] |
|
Thank you very much for taking the time. I see that this issue is fixed and expected to be in the next release. Do we have an estimate about when this will happen? |
| Comment by Diego Dupin [ 2022-05-23 ] |
|
see version correction in https://jira.mariadb.org/browse/MDEV-27937. Corrected version are now released |