It works fine for sequential request but when i bombard it with 1200 req/sec on a single server then around 3% of the requests fail with these exceptions.
com.github.mauricio.async.db.exceptions.ConnectionStillRunningQueryException: [7] - There is a query still being run here - race -> false
at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.notReadyForQueryError(PostgreSQLConnection.scala:271)
at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.validateIfItIsReadyForQuery(PostgreSQLConnection.scala:279)
at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.validateQuery(PostgreSQLConnection.scala:282)
at com.github.mauricio.async.db.postgresql.PostgreSQLConnection.sendPreparedStatement(PostgreSQLConnection.scala:114)
at io.vertx.ext.asyncsql.impl.AsyncSQLConnectionImpl.lambda$queryWithParams$11(AsyncSQLConnectionImpl.java:126)
at io.vertx.ext.asyncsql.impl.AsyncSQLConnectionImpl.beginTransactionIfNeeded(AsyncSQLConnectionImpl.java:240)
at io.vertx.ext.asyncsql.impl.AsyncSQLConnectionImpl.queryWithParams(AsyncSQLConnectionImpl.java:125)
at com.delhivery.rds.handler.OrderByIdRDSHandler.handle(OrderByIdRDSHandler.java:38)
at com.delhivery.vertex.verticles.PostgresVerticle.executeWithHandler(PostgresVerticle.java:72)
at com.delhivery.vertex.verticles.PostgresVerticle.lambda$null$0(PostgresVerticle.java:51)
at io.vertx.ext.asyncsql.impl.BaseSQLClient.lambda$getConnection$2(BaseSQLClient.java:67)
at io.vertx.ext.asyncsql.impl.pool.AsyncConnectionPool.take(AsyncConnectionPool.java:89)
at io.vertx.ext.asyncsql.impl.BaseSQLClient.getConnection(BaseSQLClient.java:63)
at io.vertx.ext.asyncsql.impl.AsyncSQLClientImpl.getConnection(AsyncSQLClientImpl.java:53)
at io.vertx.ext.asyncsql.impl.ClientWrapper.getConnection(ClientWrapper.java:51)
at com.delhivery.vertex.verticles.PostgresVerticle.lambda$registerMessageHandlers$1(PostgresVerticle.java:50)
at io.vertx.core.eventbus.impl.HandlerRegistration.handleMessage(HandlerRegistration.java:207)
at io.vertx.core.eventbus.impl.HandlerRegistration.handle(HandlerRegistration.java:201)