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
R2DBC implementation may hang when there's an exception in the rendering logic #13343
Projects
Milestone
Comments
10 tasks
The problem can be reproduced like this: public void testR2DBCExceptionInJOOQ() throws Exception {
StepVerifier
.create(r2dbc().query("test {0}", CustomQueryPart.of(ctx -> { throw new X(); })))
.expectError(X.class)
.verify();
} This test hangs forever. Alternatively, use |
The problem seems to be in @Override
final String sql() {
String result = queryExecutionSubscriber.sql;
return result != null ? result : "" + queryExecutionSubscriber.query;
} That harmless looking |
lukaseder
changed the title
R2DBC implementation may hang when there's an exception in the rendering of
R2DBC implementation may hang when there's an exception in the rendering logic
Jun 29, 2022
MULTISET
lukaseder
added a commit
that referenced
this issue
Jun 29, 2022
- In batches - When there are rendering problems in jOOQ - This includes: [#13343] R2DBC implementation may hang when there's an exception in the rendering logic
lukaseder
added a commit
that referenced
this issue
Jun 29, 2022
- In batches - When there are rendering problems in jOOQ - This includes: [#13343] R2DBC implementation may hang when there's an exception in the rendering logic
lukaseder
added a commit
that referenced
this issue
Jun 29, 2022
- In batches - When there are rendering problems in jOOQ - This includes: [#13343] R2DBC implementation may hang when there's an exception in the rendering logic
lukaseder
added a commit
that referenced
this issue
Jun 29, 2022
- In batches - When there are rendering problems in jOOQ - This includes: [#13343] R2DBC implementation may hang when there's an exception in the rendering logic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A test case added for #13341 attempts to fail whenever we call
SelectQueryImpl.asTable()
, which is slow (see #6714). I inserted an exception on every such call using instrumentation.This exception is thrown in
MULTISET
tests, for example:The query causing this is:
The exception itself is "OK" (should be fixed as of #13341), but the much bigger problem is that execution seems to hang.
jstack
shows this:The text was updated successfully, but these errors were encountered: