File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -1159,6 +1159,32 @@ async def push_pipeline(bad_actor_client, size=1):
1159
1159
assert info ["dispatch_queue_bytes" ] == 0
1160
1160
1161
1161
1162
+ @dfly_args ({"proactor_threads" : 4 , "pipeline_queue_limit" : 10 })
1163
+ async def test_pipeline_overlimit (df_factory : DflyInstanceFactory ):
1164
+ server = df_factory .create ()
1165
+ server .start ()
1166
+
1167
+ client = server .client ()
1168
+
1169
+ await client .set ("x" , "a" * 1024 * 5 )
1170
+
1171
+ async def pipe_overlimit ():
1172
+ c = server .client ()
1173
+ pipe = c .pipeline ()
1174
+ for i in range (1000 ):
1175
+ pipe .get ("x" )
1176
+ logging .debug ("Executing..." )
1177
+ res = await pipe .execute ()
1178
+ logging .debug (f"Executed." )
1179
+
1180
+ pipeline_tasks = [asyncio .create_task (pipe_overlimit ()) for _ in range (20 )]
1181
+
1182
+ await asyncio .sleep (2 )
1183
+ await client .config_set ("pipeline_queue_limit" , 10000 )
1184
+ for task in pipeline_tasks :
1185
+ await task
1186
+
1187
+
1162
1188
async def test_client_unpause (df_factory ):
1163
1189
server = df_factory .create ()
1164
1190
server .start ()
You can’t perform that action at this time.
0 commit comments