File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Ydb.Sdk/test/Ydb.Sdk.Ado.Stress.Loader Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Starting YDB ADO.NET Stress Test Tank
4242 var ctsStep1 = new CancellationTokenSource ( ) ;
4343 var workers = new List < Task > ( ) ;
4444 ctsStep1 . CancelAfter ( _config . TotalTestTimeSeconds * 500 ) ;
45-
45+
4646 for ( var i = 0 ; i < _settings . MaxSessionPool ; i ++ )
4747 {
4848 workers . Add ( Task . Run ( async ( ) =>
@@ -68,7 +68,7 @@ Starting YDB ADO.NET Stress Test Tank
6868 workers . Clear ( ) ;
6969 _logger . LogInformation ( "Phase 1 stopped shooting" ) ;
7070 await Task . Delay ( 10_000 ) ;
71-
71+
7272 _logger . LogInformation ( "[{Now}] Starting shooting without PoolingSessionSource..." , DateTime . Now ) ;
7373 var ctsStep2 = new CancellationTokenSource ( ) ;
7474 ctsStep2 . CancelAfter ( _config . TotalTestTimeSeconds * 500 ) ;
@@ -86,7 +86,7 @@ Starting YDB ADO.NET Stress Test Tank
8686 {
8787 await ydbConnection . OpenAsync ( ctsStep2 . Token ) ;
8888 }
89-
89+
9090 await new YdbCommand ( ydbConnection ) { CommandText = _config . TestQuery }
9191 . ExecuteNonQueryAsync ( ctsStep2 . Token ) ;
9292 }
@@ -97,6 +97,7 @@ Starting YDB ADO.NET Stress Test Tank
9797 }
9898 } , ctsStep2 . Token ) ) ;
9999 }
100+
100101 await Task . WhenAll ( workers ) ;
101102 _logger . LogInformation ( "Phase 2 stopped shooting" ) ;
102103 }
You can’t perform that action at this time.
0 commit comments