You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the R2DBC client, in ClickHouseResult class, the map method implementation logs but doesn't propagate exceptions. However, in the same class the flatMap method implementation both logs and propagates exceptions. See code:
log.error("Provided function caused exception:", e);
returnMono.error(e);
}
Steps to reproduce
Execute any statement producing aResult object.
Any error triggered within the biFunction argument passed to map will be logged but not propagated. For instance, just throw a new IllegalArgumentException.
Exception is logged but not propagated.
Expected behaviour
Unpropagated exceptions highly increases the chances of errors being unnoticed, unless logs are observed or analysed.
The expected behaviour is propagating the exception, like flatMap method does.
Describe the bug
For the R2DBC client, in
ClickHouseResult
class, themap
method implementation logs but doesn't propagate exceptions. However, in the same class theflatMap
method implementation both logs and propagates exceptions. See code:clickhouse-java/clickhouse-r2dbc/src/main/java/com/clickhouse/r2dbc/ClickHouseResult.java
Lines 62 to 64 in dfb161b
clickhouse-java/clickhouse-r2dbc/src/main/java/com/clickhouse/r2dbc/ClickHouseResult.java
Lines 82 to 85 in dfb161b
Steps to reproduce
Result
object.biFunction
argument passed tomap
will be logged but not propagated. For instance, just throw a newIllegalArgumentException
.Expected behaviour
Unpropagated exceptions highly increases the chances of errors being unnoticed, unless logs are observed or analysed.
The expected behaviour is propagating the exception, like
flatMap
method does.Code example
Error log
However, exception is just logged and not propagated.
Configuration
Environment
ClickHouse server
CREATE TABLE
statements for tables involved: N/A.The text was updated successfully, but these errors were encountered: