T162976 was partially caused by dbtree returning an error (about failed database connection) together with HTTP status 200, which resulted in varnish caching of the error page.
as a follow-up task, dbtree should not use 200 with error pages but an appropriate 5xx server error if the database connection fails.