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
Batch::executeAsync throws NullPointerException when executed with R2DBC driver #15331
Projects
Milestone
Comments
Other methods already throw an appropriate exception, e.g. this test passes: public void testR2DBCCallBlockingFetchAsync() throws Exception {
assumeR2DBCAvailable();
bindAndInlineWithDSLContexts(ctx -> {
ctx.configuration().set(new NoConnectionProvider());
assertThrows(CompletionException.class,
() -> ctx.selectOne().fetchAsync().toCompletableFuture().join(),
e -> assertTrue(e.getCause().getMessage(), e.getCause().getMessage().startsWith("Attempt to execute a blocking method"))
);
}, r2dbc());
} |
But indeed, the batch call assertion fails:
|
The problem isn't really related to R2BDC. The main reason is that we try to fetch an |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't currently implement
Batch.executeAsync()
based on R2DBC driver backedConfiguration
yet. Trying to call this method results in aNullPointerException
. We should throw a more meaningful exception in that case.See also:
CompletionStage
comment)The text was updated successfully, but these errors were encountered: