When tikv is closing, should return retryable error to tidb
@@ -1175,6 +1175,10 @@ fn extract_key_error(err: &storage::Error) -> KeyError {
warn!("txn conflicts: {:?}", err);
key_error.set_retryable(format!("{:?}", err));
}
+ storage::Error::Closed => {
+ warn!("tikv server is closing");
+ key_error.set_retryable(format!("{:?}", err));
+ }
_ => {
error!("txn aborts: {:?}", err);
key_error.set_abort(format!("{:?}", err));
