Skip to content

Commit

Permalink
ignore unreachable version
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tolstoukhov committed Jul 1, 2024
1 parent 9014083 commit bb46b42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cassandra.ThriftClient/Connections/ClusterConnection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

using SkbKontur.Cassandra.ThriftClient.Abstractions;
Expand Down Expand Up @@ -60,7 +61,7 @@ public void WaitUntilSchemaAgreementIsReached(TimeSpan timeout)
{
var schemaAgreementCommand = new SchemaAgreementCommand();
commandExecutor.Execute(schemaAgreementCommand);
if (schemaAgreementCommand.Output.Count == 1)
if (schemaAgreementCommand.Output.Keys.Count(x => x != "UNREACHABLE") == 1)
return;
LogVersions(schemaAgreementCommand.Output);
} while (sw.Elapsed < timeout);
Expand Down

0 comments on commit bb46b42

Please sign in to comment.