Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find prepared statement with handle #289

Open
sebastian-alfers opened this issue Jan 16, 2024 · 2 comments
Open

Could not find prepared statement with handle #289

sebastian-alfers opened this issue Jan 16, 2024 · 2 comments

Comments

@sebastian-alfers
Copy link

sebastian-alfers commented Jan 16, 2024

I am inserting a few rows concurrently (using scala future, 100 queries) and I am getting the following ErrorToken:

[2024-01-16 10:40:58,815] [DEBUG] [io.r2dbc.mssql.client.ReactorNettyClient] [] [] [reactor-tcp-nio-6] - [cid: 0x11] Response: ErrorToken [number=8179, state=4, infoClass=16, message='Could not find prepared statement with handle 2.", serverName='ad4bc1cf0cd2", procName='", lineNumber=16777216]

I am using 1.0.2-RELEASE and preferCursoredExecution=false.

@sebastian-alfers
Copy link
Author

sebastian-alfers commented Jan 16, 2024

This is how to reproduce it:

git clone [email protected]:sebastian-alfers/akka-persistence-r2dbc.git
cd akka-persistence-r2dbc
git checkout mssql-support-2nd
docker compose -f docker/docker-compose-sqlserver.yml up -d
sbt -Dconfig.resource=application-sqlserver.conf test

It uses sbt and scala.

Changing the dependency can be done here and settings here.

@sebastian-alfers
Copy link
Author

sebastian-alfers commented Jan 21, 2024

It seems to make a difference when the root log level and / or the io.r2dbc.mssql.QUERY to INFO (where it works) or DEBUG (where it fails).

Change can be done here to trigger the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant