Closed chancyk closed 3 years ago
What is it doing when it's blocked? High CPU usage? Disk activity? Does this happen when connecting and then immediately disconnecting, or is it only after some activity on the connection? If so, does it happen after both read-only and read-write operations? It's hard to say without seeing some more details.
@v-chojas
No apparent disk usage. CPU sits at about 1-2%. I'm doing database reads only, and in my reproducible case it's after the connection is only open for about 200ms, though I'm not sure it's isolated to those short connection times. It is after executing a query.
The pause is almost exactly 15.15 seconds each time (+/- 0.01 or so). Python just blocks until it eventually goes through. Adding the 1s sleep does seem to reduce the occurrence of the issue by quite a bit though.
I don't have time tonight, but I might see if I can create a reproducible example tomorrow.
Other potentially helpful pieces of information:
There are at least some cases where the Access Database Engine will introduce a delay of about 5 seconds following the execution of a query, but those cases usually involve updates to the database, not simple reads. Details here.
Closed due to inactivity. Feel free to re-open with current information if necessary.
Environment
Issue
Issuing a close() on the connection will sometimes block for 5+ seconds. Inserting a 1 second sleep before the close though seems to circumvent the problem. Could there possibly be some kind of thread contention occurring? I'm not sure about how to proceed with debugging this further, but I'm happy to dig if anyone has suggestions.