MongoDB Issue


I’m using fly with Java and MongoDB Serverless and I’m experiencing the following issue:

Occasionally, let’s say 1 in every 10 queries, I get DataAccessResourceFailureException thrown from a method annotated with @Transactional which first makes a read query to the DB, which fails.

I have tried pinging the DB every minute with a simple read query, because I thought the DB was going to “sleep”, but that didn’t solve the problem.

Any help would be much appreciated.

Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.