Hello, community, I have a question, I am using A...
# questions
g
Hello, community, I have a question, I am using AsyncController for some of my controllers, and I found that if by accident I forgot to call complete on AsynContext,
AsyncContext ctx = startAsync()
try {
.....
....
} catch all {
} finally {
ctx.complete()
}
However, somehow if I forgot to call ctx.complete() then my database connection pool can run exhausted. Can anybody enlighten me why is this? If instead I use
HikariCP
to replace the
default connection pool
, will this help? Thanks
Looks like this is related. I temporarily rollback the controller by using regular synchronized controllers. Please let me know if there are better way to handle this https://stackoverflow.com/questions/61628251/use-of-async-with-transactional-method-springboot