Russole opened a new pull request, #22537:
URL: https://github.com/apache/kafka/pull/22537

   ## Summary
   
   Speed up `ShareConsumerTest.testAcquisitionLockTimeoutOnConsumer` by 
overriding the broker-side share record lock duration for this test.
   
   The test previously relied on the class-level 
`group.share.record.lock.duration.ms=15000` and waited `20000ms` for the 
acquisition lock to expire. This PR lowers the test-specific lock duration to 
`5000ms` and reduces the sleep to `8000ms`.
   
   Both `group.share.min.record.lock.duration.ms` and 
`group.share.record.lock.duration.ms` are set because the actual lock duration 
must be greater than or equal to the configured minimum.
   
   ## Testing
   
   Ran the target test repeatedly to check for flakiness:
   
   ```bash
   ./gradlew :clients:clients-integration-tests:test --tests 
org.apache.kafka.clients.consumer.ShareConsumerTest.testAcquisitionLockTimeoutOnConsumer
 --rerun-tasks
   Result: 10/10 passed.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to