Skip to content

Commit

Permalink
Fix issue with unassigned worker initialization when restoring Cluste…
Browse files Browse the repository at this point in the history
…rConfig (microsoft#943)

* Fix cluster worker[0] init in 2nd constructor

* Add a test

* Revert change to CreateInstances, update test to work without stalling other tests

---------

Co-authored-by: Vasileios Zois <96085550+vazois@users.noreply.github.com>
  • Loading branch information
Mathos1432 and vazois authored Jan 23, 2025
1 parent de1fa22 commit 51ee0f0
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 8 deletions.
1 change: 1 addition & 0 deletions libs/cluster/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("BDN.benchmark" + ClusterAssemblyRef.GarnetPublicKey)]
[assembly: InternalsVisibleTo("Garnet.test.cluster" + ClusterAssemblyRef.GarnetPublicKey)]

/// <summary>
/// Sets public key string for friend assemblies.
Expand Down
25 changes: 17 additions & 8 deletions libs/cluster/Server/ClusterConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,7 @@ public ClusterConfig()
slotMap[i]._workerId = 0;
}
workers = new Worker[2];
workers[0].Address = "unassigned";
workers[0].Port = 0;
workers[0].Nodeid = null;
workers[0].ConfigEpoch = 0;
workers[0].Role = NodeRole.UNASSIGNED;
workers[0].ReplicaOfNodeId = null;
workers[0].ReplicationOffset = 0;
workers[0].hostname = null;
InitializeUnassignedWorker();
}

/// <summary>
Expand All @@ -73,6 +66,7 @@ public ClusterConfig(HashSlot[] slotMap, Worker[] workers)
{
this.slotMap = slotMap;
this.workers = workers;
InitializeUnassignedWorker();
}

public ClusterConfig Copy()
Expand All @@ -84,6 +78,21 @@ public ClusterConfig Copy()
return new ClusterConfig(newSlotMap, newWorkers);
}

/// <summary>
/// Initialize the worker at index 0 as unassigned.
/// </summary>
private void InitializeUnassignedWorker()
{
workers[0].Address = "unassigned";
workers[0].Port = 0;
workers[0].Nodeid = null;
workers[0].ConfigEpoch = 0;
workers[0].Role = NodeRole.UNASSIGNED;
workers[0].ReplicaOfNodeId = null;
workers[0].ReplicationOffset = 0;
workers[0].hostname = null;
}

/// <summary>
/// Initialize local worker with provided information
/// </summary>
Expand Down
110 changes: 110 additions & 0 deletions test/Garnet.test.cluster/ClusterConfigTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Garnet.cluster;
using Garnet.common;
using Microsoft.Extensions.Logging;
using NUnit.Framework;
using NUnit.Framework.Internal;
using StackExchange.Redis;

namespace Garnet.test.cluster
{
[TestFixture, NonParallelizable]
internal class ClusterConfigTests
{
ClusterTestContext context;

readonly Dictionary<string, LogLevel> monitorTests = [];

[SetUp]
public void Setup()
{
context = new ClusterTestContext();
context.Setup(monitorTests);
}

[TearDown]
public void TearDown()
{
context.TearDown();
}

[Test, Order(1)]
[Category("CLUSTER-CONFIG"), CancelAfter(1000)]
public void ClusterConfigInitializesUnassignedWorkerTest()
{
ClusterConfig config = new ClusterConfig().InitializeLocalWorker(
Generator.CreateHexId(),
"127.0.0.1",
7001,
configEpoch: 0,
NodeRole.PRIMARY,
null,
"");

(string address, int port) = config.GetWorkerAddress(0);
Assert.That(address == "unassigned");
Assert.That(port == 0);
Assert.That(NodeRole.UNASSIGNED == config.GetNodeRoleFromNodeId("asdasdqwe"));

var configBytes = config.ToByteArray();
var restoredConfig = ClusterConfig.FromByteArray(configBytes);

(address, port) = restoredConfig.GetWorkerAddress(0);
Assert.That(address == "unassigned");
Assert.That(port == 0);
Assert.That(NodeRole.UNASSIGNED == restoredConfig.GetNodeRoleFromNodeId("asdasdqwe"));
}

[Test, Order(2)]
[Category("CLUSTER-CONFIG"), CancelAfter(1000)]
public void ClusterForgetAfterNodeRestartTest()
{
int nbInstances = 4;

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-latest, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-latest, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-20.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (ubuntu-22.04, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2022, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Debug, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used

Check warning on line 67 in test/Garnet.test.cluster/ClusterConfigTests.cs

View workflow job for this annotation

GitHub Actions / Garnet (windows-2019, net8.0, Release, Garnet.test.cluster)

The variable 'nbInstances' is assigned but its value is never used
context.CreateInstances(4);
context.CreateConnection();
var (shards, slots) = context.clusterTestUtils.SimpleSetupCluster(logger: context.logger);

// Restart node with new ACL file
context.nodes[0].Dispose(false);
context.nodes[0] = context.CreateInstance(context.clusterTestUtils.GetEndPoint(0).Port, useAcl: true, cleanClusterConfig: false);
context.nodes[0].Start();
context.CreateConnection();

var firstNode = context.nodes[0];
var nodesResult = context.clusterTestUtils.ClusterNodes(0);
Assert.That(nodesResult.Nodes.Count == 4);

try
{
var server = context.clusterTestUtils.GetServer(context.endpoints[0].ToIPEndPoint());
var args = new List<object>() {
"forget",
Encoding.ASCII.GetBytes("1ip23j89123no"),
Encoding.ASCII.GetBytes("0")
};
var result = (string)server.Execute("cluster", args);
Assert.Fail("Cluster forget call shouldn't have succeeded for an invalid node id.");
}
catch (Exception ex)
{
Assert.That(ex.Message == "ERR I don't know about node 1ip23j89123no.");
}

nodesResult = context.clusterTestUtils.ClusterNodes(0);
Assert.That(nodesResult.Nodes.Count == 4, "No node should've been removed from the cluster after an invalid id was passed.");
Assert.That(nodesResult.Nodes.ElementAt(0).IsMyself);
Assert.That(nodesResult.Nodes.ElementAt(0).EndPoint.ToIPEndPoint().Port == 7000, "Expected the node to be replying to be the one with port 7000.");

context.clusterTestUtils.ClusterForget(0, nodesResult.Nodes.Last().NodeId, 0);
nodesResult = context.clusterTestUtils.ClusterNodes(0);
Assert.That(nodesResult.Nodes.Count == 3, "A node should've been removed from the cluster.");
Assert.That(nodesResult.Nodes.ElementAt(0).IsMyself);
Assert.That(nodesResult.Nodes.ElementAt(0).EndPoint.ToIPEndPoint().Port == 7000, "Expected the node to be replying to be the one with port 7000.");
}
}
}

0 comments on commit 51ee0f0

Please sign in to comment.