Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling negative edge cases in the connection pool #560

Merged
merged 13 commits into from
Nov 2, 2023
Merged

Better handling negative edge cases in the connection pool #560

merged 13 commits into from
Nov 2, 2023

Conversation

akrambek
Copy link
Contributor

@akrambek akrambek commented Nov 2, 2023

Description

  • Added support for better handling those cases, refactored.
  • Minor bug fixes in Kafka Client Group Factory

Fixes #557

@@ -81,6 +82,7 @@ public class KafkaConfiguration extends Configuration
KAFKA_CLIENT_INSTANCE_ID = config.property(InstanceIdSupplier.class, "client.instance.id",
KafkaConfiguration::decodeInstanceId, KafkaConfiguration::defaultInstanceId);
KAFKA_CLIENT_MAX_IDLE_MILLIS = config.property("client.max.idle.ms", 1 * 60 * 1000);
KAFKA_CLIENT_CONNECTION_POLL_CLEANUP_MILLIS = config.property("client.connection.pool.cleanup.millis", 4 * 1000L);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
KAFKA_CLIENT_CONNECTION_POLL_CLEANUP_MILLIS = config.property("client.connection.pool.cleanup.millis", 4 * 1000L);
KAFKA_CLIENT_CONNECTION_POOL_CLEANUP_MILLIS = config.property("client.connection.pool.cleanup.millis", 4 * 1000L);

@@ -29,6 +30,8 @@ public class KafkaConfigurationTest
public static final String KAFKA_CLIENT_PRODUCE_MAX_REQUEST_MILLIS_NAME =
"zilla.binding.kafka.client.produce.max.request.millis";
public static final String KAFKA_CLIENT_PRODUCE_MAX_BYTES_NAME = "zilla.binding.kafka.client.produce.max.bytes";
public static final String KAFKA_CLIENT_CONNECTION_POLL_CLEANUP_MILLIS_NAME =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static final String KAFKA_CLIENT_CONNECTION_POLL_CLEANUP_MILLIS_NAME =
public static final String KAFKA_CLIENT_CONNECTION_POOL_CLEANUP_MILLIS_NAME =

@jfallows jfallows merged commit 320b7f4 into aklivity:develop Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Connection Pool] Signaling can trigger exception
2 participants