@@ -61,16 +61,16 @@ public function testCreateTopics(): void
6161        $ conf  = new  Conf ();
6262        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
6363        $ client  = Client::fromConf ($ conf );
64-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
64+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
6565
6666        $ topics  = [
6767            new  NewTopic ('test_admin_1 ' , 1 , 1 ),
6868            new  NewTopic ('test_admin_2 ' , 2 , 1 ),
6969        ];
7070
7171        $ options  = $ client ->newCreateTopicsOptions ();
72-         $ options ->setOperationTimeout (KAFKA_TEST_TIMEOUT_MS );
73-         $ options ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
72+         $ options ->setOperationTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
73+         $ options ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
7474        $ options ->setBrokerId (KAFKA_BROKER_ID );
7575
7676        $ result  = $ client ->createTopics ($ topics , $ options );
@@ -123,16 +123,16 @@ public function testCreatePartitions(): void
123123        $ conf  = new  Conf ();
124124        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
125125        $ client  = Client::fromConf ($ conf );
126-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
126+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
127127
128128        $ partitions  = [
129129            new  NewPartitions ('test_admin_1 ' , 4 ),
130130            new  NewPartitions ('test_admin_2 ' , 6 ),
131131        ];
132132
133133        $ options  = $ client ->newCreatePartitionsOptions ();
134-         $ options ->setOperationTimeout (KAFKA_TEST_TIMEOUT_MS );
135-         $ options ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
134+         $ options ->setOperationTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
135+         $ options ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
136136        $ options ->setBrokerId (KAFKA_BROKER_ID );
137137
138138        $ result  = $ client ->createPartitions ($ partitions , $ options );
@@ -185,16 +185,16 @@ public function testDeleteTopics(): void
185185        $ conf  = new  Conf ();
186186        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
187187        $ client  = Client::fromConf ($ conf );
188-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
188+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
189189
190190        $ topics  = [
191191            new  DeleteTopic ('test_admin_1 ' ),
192192            new  DeleteTopic ('test_admin_2 ' ),
193193        ];
194194
195195        $ options  = $ client ->newDeleteTopicsOptions ();
196-         $ options ->setOperationTimeout (KAFKA_TEST_TIMEOUT_MS );
197-         $ options ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
196+         $ options ->setOperationTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
197+         $ options ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
198198        $ options ->setBrokerId (KAFKA_BROKER_ID );
199199
200200        $ result  = $ client ->deleteTopics ($ topics , $ options );
@@ -247,15 +247,15 @@ public function testCreateTopicsWithReplicaAssignment(): void
247247        $ conf  = new  Conf ();
248248        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
249249        $ client  = Client::fromConf ($ conf );
250-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
250+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
251251
252252        $ topic  = new  NewTopic ('test_admin_3 ' , 2 , -1 );
253253        $ topic ->setReplicaAssignment (0 , [KAFKA_BROKER_ID ]);
254254        $ topic ->setReplicaAssignment (1 , [KAFKA_BROKER_ID ]);
255255
256256        $ options  = $ client ->newCreateTopicsOptions ();
257-         $ options ->setOperationTimeout (KAFKA_TEST_TIMEOUT_MS );
258-         $ options ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
257+         $ options ->setOperationTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
258+         $ options ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
259259        $ options ->setBrokerId (KAFKA_BROKER_ID );
260260
261261        $ result  = $ client ->createTopics ([$ topic ], $ options );
@@ -284,15 +284,15 @@ public function testCreatePartitionsWithReplicaAssignment(): void
284284        $ conf  = new  Conf ();
285285        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
286286        $ client  = Client::fromConf ($ conf );
287-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
287+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
288288
289289        $ partition  = new  NewPartitions ('test_admin_3 ' , 4 );
290290        $ partition ->setReplicaAssignment (0 , [KAFKA_BROKER_ID ]);
291291        $ partition ->setReplicaAssignment (1 , [KAFKA_BROKER_ID ]);
292292
293293        $ options  = $ client ->newCreatePartitionsOptions ();
294-         $ options ->setOperationTimeout (KAFKA_TEST_TIMEOUT_MS );
295-         $ options ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
294+         $ options ->setOperationTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
295+         $ options ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
296296        $ options ->setBrokerId (KAFKA_BROKER_ID );
297297
298298        $ result  = $ client ->createPartitions ([$ partition ], $ options );
@@ -319,7 +319,7 @@ private function getFilteredMetaTopics(array $topicNames): array
319319        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
320320        $ producer  = new  Producer ($ conf );
321321        $ metaTopics  = [];
322-         $ metadata  = $ producer ->getMetadata (true , null , KAFKA_TEST_TIMEOUT_MS );
322+         $ metadata  = $ producer ->getMetadata (true , null , KAFKA_TEST_LONG_TIMEOUT_MS );
323323        foreach  ($ metadata ->getTopics () as  $ topic ) {
324324            if  (in_array ($ topic ->getTopic (), $ topicNames , true )) {
325325                $ metaTopics [$ topic ->getTopic ()] = $ topic ;
@@ -338,12 +338,12 @@ public function testDescribeConfigs(): void
338338        $ conf  = new  Conf ();
339339        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
340340        $ client  = Client::fromConf ($ conf );
341-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
341+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
342342
343343        $ configResource  = new  ConfigResource (RD_KAFKA_RESOURCE_BROKER , (string ) KAFKA_BROKER_ID );
344344
345345        $ options  = $ client ->newDescribeConfigsOptions ();
346-         $ options ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
346+         $ options ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
347347        $ options ->setBrokerId (KAFKA_BROKER_ID );
348348
349349        $ result  = $ client ->describeConfigs ([$ configResource ], $ options );
@@ -390,17 +390,17 @@ public function testAlterConfigs(): void
390390        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
391391        $ conf ->set ('broker.version.fallback ' , '2.0.0 ' );
392392        $ client  = Client::fromConf ($ conf );
393-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
393+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
394394
395395        $ configResource  = new  ConfigResource (RD_KAFKA_RESOURCE_BROKER , (string ) KAFKA_BROKER_ID );
396396        $ configResource ->setConfig ('max.connections.per.ip ' , (string ) 500000 );
397397
398398        $ alterConfigOptions  = $ client ->newAlterConfigsOptions ();
399-         $ alterConfigOptions ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
399+         $ alterConfigOptions ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
400400        $ alterConfigOptions ->setBrokerId (KAFKA_BROKER_ID );
401401
402402        $ describeConfigsOptions  = $ client ->newDescribeConfigsOptions ();
403-         $ describeConfigsOptions ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
403+         $ describeConfigsOptions ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
404404        $ describeConfigsOptions ->setBrokerId (KAFKA_BROKER_ID );
405405
406406        // alter config 
@@ -472,20 +472,20 @@ public function testDeleteRecords(): void
472472        $ topic  = $ producer ->newTopic (KAFKA_TEST_TOPIC_ADMIN );
473473        $ topic ->produce (0 , 0 , __METHOD__ );
474474        $ topic ->produce (0 , 0 , __METHOD__ );
475-         $ producer ->flush (KAFKA_TEST_TIMEOUT_MS );
475+         $ producer ->flush (KAFKA_TEST_LONG_TIMEOUT_MS );
476476
477477        $ conf  = new  Conf ();
478478        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
479479        $ client  = Client::fromConf ($ conf );
480-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
481-         $ client ->getMetadata (true , null , KAFKA_TEST_TIMEOUT_MS );
480+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
481+         $ client ->getMetadata (true , null , KAFKA_TEST_LONG_TIMEOUT_MS );
482482
483483        $ deleteRecords  = new  DeleteRecords (
484484            new  TopicPartition (KAFKA_TEST_TOPIC_ADMIN , 0 , 1 )
485485        );
486486
487487        $ deleteRecordsOptions  = $ client ->newDeleteRecordsOptions ();
488-         $ deleteRecordsOptions ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
488+         $ deleteRecordsOptions ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
489489        $ deleteRecordsOptions ->setBrokerId (KAFKA_BROKER_ID );
490490
491491        $ result  = $ client ->deleteRecords ([$ deleteRecords ], $ deleteRecordsOptions );
@@ -508,7 +508,7 @@ public function testDeleteConsumerGroupOffset(): void
508508        $ topic ->produce (0 , 0 , __METHOD__ );
509509        $ topic ->produce (0 , 0 , __METHOD__ );
510510        $ topic ->produce (0 , 0 , __METHOD__ );
511-         $ producer ->flush (KAFKA_TEST_TIMEOUT_MS );
511+         $ producer ->flush (KAFKA_TEST_LONG_TIMEOUT_MS );
512512
513513        $ conf  = new  Conf ();
514514        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
@@ -525,22 +525,22 @@ public function testDeleteConsumerGroupOffset(): void
525525        $ consumer ->commit ();
526526        $ topicPartitions  = $ consumer ->getCommittedOffsets (
527527            [new  TopicPartition (KAFKA_TEST_TOPIC_ADMIN , 0 )],
528-             KAFKA_TEST_TIMEOUT_MS 
528+             KAFKA_TEST_LONG_TIMEOUT_MS 
529529        );
530530        $ this  ->assertSame (2 , $ topicPartitions [0 ]->getOffset ());
531531
532532        $ conf  = new  Conf ();
533533        $ conf ->set ('bootstrap.servers ' , KAFKA_BROKERS );
534534        $ client  = Client::fromConf ($ conf );
535-         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_TIMEOUT_MS );
535+         $ client ->setWaitForResultEventTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
536536
537537        $ deleteGroupOffsets  = new  DeleteConsumerGroupOffsets (
538538            __METHOD__ ,
539539            new  TopicPartition (KAFKA_TEST_TOPIC_ADMIN , 0 , 1 )
540540        );
541541
542542        $ deleteGroupOffsetsOptions  = $ client ->newDeleteConsumerGroupOffsetsOptions ();
543-         $ deleteGroupOffsetsOptions ->setRequestTimeout (KAFKA_TEST_TIMEOUT_MS );
543+         $ deleteGroupOffsetsOptions ->setRequestTimeout (KAFKA_TEST_LONG_TIMEOUT_MS );
544544        $ deleteGroupOffsetsOptions ->setBrokerId (KAFKA_BROKER_ID );
545545
546546        $ result  = $ client ->deleteConsumerGroupOffsets ($ deleteGroupOffsets , $ deleteGroupOffsetsOptions );
0 commit comments