Skip to content

Commit ee5fc62

Browse files
authored
Increase number of network threads (#2081)
* Increase number of network threads to avoid disconnections from broker 0 * Same fix for AlterConfig integration test
1 parent 4ff4e29 commit ee5fc62

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

test/Confluent.Kafka.IntegrationTests/Tests/AdminClient_AlterConfigs.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ public partial class Tests
3434
public void AdminClient_AlterConfigs(string bootstrapServers)
3535
{
3636
LogToFile("start AdminClient_AlterConfigs");
37-
bool skipFlakyTests = semaphoreSkipFlakyTests();
38-
if (skipFlakyTests)
39-
{
40-
LogToFile("Skipping AdminClient_AlterConfigs Test on Semaphore due to its flaky nature");
41-
return;
42-
}
43-
4437
using (var adminClient = new AdminClientBuilder(new AdminClientConfig { BootstrapServers = bootstrapServers }).Build())
4538
{
4639
// 1. create a new topic to play with.
@@ -102,7 +95,7 @@ public void AdminClient_AlterConfigs(string bootstrapServers)
10295
{
10396
{
10497
new ConfigResource { Name = "0", Type = ResourceType.Broker },
105-
new List<ConfigEntry> { new ConfigEntry { Name="num.network.threads", Value="2" } }
98+
new List<ConfigEntry> { new ConfigEntry { Name="num.network.threads", Value="6" } }
10699
}
107100
};
108101
adminClient.AlterConfigsAsync(toUpdate).Wait();

test/Confluent.Kafka.IntegrationTests/Tests/AdminClient_IncrementalAlterConfigs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void AdminClient_IncrementalAlterConfigs(string bootstrapServers)
102102
{
103103
{
104104
new ConfigResource { Name = "0", Type = ResourceType.Broker },
105-
new List<ConfigEntry> { new ConfigEntry { Name = "num.network.threads", Value = "2" , IncrementalOperation = AlterConfigOpType.Set } }
105+
new List<ConfigEntry> { new ConfigEntry { Name = "num.network.threads", Value = "6" , IncrementalOperation = AlterConfigOpType.Set } }
106106
}
107107
};
108108
adminClient.IncrementalAlterConfigsAsync(toUpdate).Wait();

0 commit comments

Comments
 (0)