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

setting Connection Options will block the thread and trigger a 30s event timeout #123

Open
marsbergen opened this issue Aug 31, 2018 · 0 comments

Comments

@marsbergen
Copy link

marsbergen commented Aug 31, 2018

Without the SQLOptions it runs smooth, but when I set the SQLOptions it'll fall silent and hit a 30 second message reply timeout.
I try to set the SQLOptions to get the keys out of my MariaDB insert/update queries which stay at 0 with. the default setup.

Has anyone an idea how I can get my inserted/updated ID's or is this a known bug?
I check the history of this project and saw something similar, and setting the SQLOptions should fix it, but couldn't find any other issues with hitting a timeout after adding SQLOptions.

client.getConnection(res -> {
            SQLConnection connection = res.result();
            connection.setOptions(new SQLOptions().setAutoGeneratedKeys(true).setAutoGeneratedKeysIndexes(null));

            connection.updateWithParams(message.getString("query"), message.getJsonArray("queryParams"), queryResult -> {
                 ...
                }
            });
        });

These are the versions I'm running:

Instance Version
MariaDB (with homebrew on macOS) 10.2.13
Vert.x 3.5.3
macOS 10.13.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant