Skip to content

Commit 9afe648

Browse files
authored
Fix 100% CPU usage with DependentAdminClient (confluentinc#1949)
* Add default value of cancellationDelayMaxMs for DependantAdminClient * Update CHANGELOG * Use ExtractCancellationDelayMaxMs instead of hardcoding
1 parent 245f94c commit 9afe648

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
## Fixes
1111

1212
- During a group rebalance, partitions are now always revoked as a side effect of a call to Consume, whether or not a partitions revoked handler has been specified. Previously, if no handler was specified, the timing of when the consumer lost ownership of partitions during a rebalance was arbitrarily, frequently resulting in an erroneous state exception when committing or storing offsets.
13+
- Fixed 100% CPU usage with `DependentAdminClientBuilder`.
1314

1415

1516
# 1.9.4

src/Confluent.Kafka/AdminClient.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,8 @@ private SafeKafkaHandle kafkaHandle
768768
/// or AdminClient handle.
769769
/// </param>
770770
internal AdminClient(Handle handle)
771-
{
771+
{
772+
Config.ExtractCancellationDelayMaxMs(new AdminClientConfig(), out this.cancellationDelayMaxMs);
772773
this.ownedClient = null;
773774
this.handle = handle;
774775
Init();

0 commit comments

Comments
 (0)