[NIFI]Problem on Athena queries via NiFI
Hi! I have a DBCPConnectionPool on NiFi 1.11.3 with this configuration:

Normally it works ok, but sometimes the query get stuck on a PutSQL, no errors for minutes and then a timeout (very basic queries)
I was trying some configurations on the pool but it seems I didn't quite understand the best way to troubleshoot this, I was thinking in each processor add a retry+counter+error.
But don't know where to set the time out for queries from start of it and no per connection. Maybe a way is to not keep connections open until the query starts, how should I set the pool to generate the connection on request from a processor and terminate it before execution.
I think it's a Athena problem with pools because I have no problem with another databases like postgres and mysql.
Any ideas??
Thank you!

