OperationalError: OperationalError('server closed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing the request.\n',)

Hi,

I run sentry v9.0 on k8s, i see the below operationalError when there is a mismatch in age of worker and postgres pod:

sentry-sentry-worker-1605698867-8qqtm sentry OperationalError: OperationalError(‘server closed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing the request.\n’,)
sentry-sentry-worker-1605698867-8qqtm sentry SQL: SELECT “sentry_option”.“id”, “sentry_option”.“key”, “sentry_option”.“value”, “sentry_option”.“last_updated” FROM “sentry_option” WHERE “sentry_option”.“key” = %s
sentry-sentry-worker-1605698867-8qqtm sentry 05:33:04 [INFO] sentry.utils.raven.SentryInternalClient: Not capturing exception due to filters: <class ‘django.db.utils.OperationalError’>

Is there a sync or heartbeat config which can get events flowing in sentry worker pods? irrespective if the k8s nodes are restarted or sentry pod age are different.

fsync = on in postgres,