Skip to content

Commit

Permalink
fix(h2): disable optimize reuse results to avoid race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlugter committed Sep 15, 2023
1 parent def5713 commit 77e6a3a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ private[r2dbc] object H2Dialect extends Dialect {
// don't auto close connections
.property(H2ConnectionOption.DB_CLOSE_DELAY, "-1")

// workaround for https://github.com/akka/akka-projection/issues/992
builder.option("OPTIMIZE_REUSE_RESULTS=FALSE")

if (config.getBoolean("trace-logging"))
// log to SLF4J instead of print to stdout, logger name will be 'h2database'
builder.property(H2ConnectionOption.TRACE_LEVEL_FILE, "4")
Expand Down

0 comments on commit 77e6a3a

Please sign in to comment.