File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,17 @@ const REGION_SPLIT_TIME_LIMIT: Duration = Duration::from_secs(15);
2424
2525// Delete all entries in TiKV to leave a clean space for following tests.
2626pub async fn clear_tikv ( ) {
27+ // DEFAULT_REGION_BACKOFF is not long enough for CI environment. So set a longer backoff.
28+ let backoff = tikv_client:: Backoff :: no_jitter_backoff ( 100 , 30000 , 20 ) ;
2729 let raw_client =
2830 RawClient :: new_with_config ( pd_addrs ( ) , Config :: default ( ) . with_default_keyspace ( ) )
2931 . await
3032 . unwrap ( ) ;
31- raw_client. delete_range ( ..) . await . unwrap ( ) ;
33+ raw_client
34+ . with_backoff ( backoff)
35+ . delete_range ( ..)
36+ . await
37+ . unwrap ( ) ;
3238
3339 let txn_client =
3440 TransactionClient :: new_with_config ( pd_addrs ( ) , Config :: default ( ) . with_default_keyspace ( ) )
You can’t perform that action at this time.
0 commit comments