// We handle before any queries because a failed query
// We handle before any queries because a failed query
// may stale the database during recovery and then
// may stale the database during recovery and then
// we'd have to handle there as well.
// we'd have to handle there as well.
//stales, if set true, will set the cache status to stale, which triggers the reloading of metadata. The default value of stale, which is from AbstractQueryExecutor, is false.