Backport some panic protection during ERS (#196)
Backport some panic protection during ERS (#196)

Backport some panic protection during ERS

This takes the core of the change from https://github.com/vitessio/vitess/pull/7486 and backports it into 8.0.

Signed-off-by: Richard Bailey <70c8ea1f06829292a3a9cd3a9a674f221b77dd46@slack-corp.com>
tinyspeck/vitess,tinyspeck/vitess,tinyspeck/vitess,tinyspeck/vitess,tinyspeck/vitess,tinyspeck/vitess,tinyspeck/vitess