diff --git a/src/Cassandra.IntegrationTests/Core/ClusterSimulacronTests.cs b/src/Cassandra.IntegrationTests/Core/ClusterSimulacronTests.cs index 1cce8e656..ff4dbe4e2 100644 --- a/src/Cassandra.IntegrationTests/Core/ClusterSimulacronTests.cs +++ b/src/Cassandra.IntegrationTests/Core/ClusterSimulacronTests.cs @@ -232,7 +232,7 @@ public void RepeatedClusterConnectCallsAfterTimeoutErrorThrowCachedInitErrorExce " between the client driver instance and the cluster. You can increase this timeout via " + "the SocketOptions.ConnectTimeoutMillis config setting. This can also be related to deadlocks " + "caused by mixing synchronous and asynchronous code."; - var cachedError = "An error occured during the initialization of the cluster instance. Further initialization attempts " + + var cachedError = "An error occurred during the initialization of the cluster instance. Further initialization attempts " + "for this cluster instance will never succeed and will return this exception instead. The InnerException property holds " + "a reference to the exception that originally caused the initialization error."; using (var cluster = CreateClusterAndWaitUntilConnectException( diff --git a/src/Cassandra/Connections/IRequestError.cs b/src/Cassandra/Connections/IRequestError.cs index 9b11ea5ed..db92d8ce5 100644 --- a/src/Cassandra/Connections/IRequestError.cs +++ b/src/Cassandra/Connections/IRequestError.cs @@ -19,7 +19,7 @@ namespace Cassandra.Connections { /// - /// Represents an error that occured during a request. + /// Represents an error that occurred during a request. /// internal interface IRequestError { diff --git a/src/Cassandra/Exceptions/InitFatalErrorException.cs b/src/Cassandra/Exceptions/InitFatalErrorException.cs index c985d5dd3..69a9a9b16 100644 --- a/src/Cassandra/Exceptions/InitFatalErrorException.cs +++ b/src/Cassandra/Exceptions/InitFatalErrorException.cs @@ -20,7 +20,7 @@ namespace Cassandra public class InitFatalErrorException : Exception { private const string ExceptionMessage = - "An error occured during the initialization of the cluster instance. Further initialization attempts " + + "An error occurred during the initialization of the cluster instance. Further initialization attempts " + "for this cluster instance will never succeed and will return this exception instead. The InnerException property holds " + "a reference to the exception that originally caused the initialization error."; diff --git a/src/Cassandra/Exceptions/ReadFailureException.cs b/src/Cassandra/Exceptions/ReadFailureException.cs index 7c938708b..2952330cc 100644 --- a/src/Cassandra/Exceptions/ReadFailureException.cs +++ b/src/Cassandra/Exceptions/ReadFailureException.cs @@ -67,7 +67,7 @@ public class ReadFailureException : QueryExecutionException /// 0x0004Some failures (one or more) were reported to the replica "leading" /// a counter write. The actual error didn't occur on the node that sent this failure, it is is simply the /// node reporting it due to how counter writes work; the initial reason for the failure should have been - /// logged on the actual replica on which the problem occured). + /// logged on the actual replica on which the problem occurred). /// 0x0005The table used by the query was not found on at least one of the /// replica. This strongly suggest a query was done on either a newly created or newly dropped table with /// having waited for schema agreement first. diff --git a/src/Cassandra/Exceptions/WriteFailureException.cs b/src/Cassandra/Exceptions/WriteFailureException.cs index 3f0d71483..2c73217ab 100644 --- a/src/Cassandra/Exceptions/WriteFailureException.cs +++ b/src/Cassandra/Exceptions/WriteFailureException.cs @@ -74,7 +74,7 @@ public class WriteFailureException : QueryExecutionException /// 0x0004Some failures (one or more) were reported to the replica "leading" /// a counter write. The actual error didn't occur on the node that sent this failure, it is is simply the /// node reporting it due to how counter writes work; the initial reason for the failure should have been - /// logged on the actual replica on which the problem occured). + /// logged on the actual replica on which the problem occurred). /// 0x0005The table used by the query was not found on at least one of the /// replica. This strongly suggest a query was done on either a newly created or newly dropped table with /// having waited for schema agreement first. diff --git a/src/Cassandra/Observers/Metrics/MetricsConnectionObserver.cs b/src/Cassandra/Observers/Metrics/MetricsConnectionObserver.cs index 48b9eef87..d087baa8a 100644 --- a/src/Cassandra/Observers/Metrics/MetricsConnectionObserver.cs +++ b/src/Cassandra/Observers/Metrics/MetricsConnectionObserver.cs @@ -88,7 +88,7 @@ public IOperationObserver CreateOperationObserver() private static void LogError(Exception ex) { - Logger.Warning("An error occured while recording metrics for a connection. Exception: {0}", ex.ToString()); + Logger.Warning("An error occurred while recording metrics for a connection. Exception: {0}", ex.ToString()); } } } \ No newline at end of file diff --git a/src/Cassandra/Observers/Metrics/MetricsOperationObserver.cs b/src/Cassandra/Observers/Metrics/MetricsOperationObserver.cs index 4cf7ddbe0..00befb5b5 100644 --- a/src/Cassandra/Observers/Metrics/MetricsOperationObserver.cs +++ b/src/Cassandra/Observers/Metrics/MetricsOperationObserver.cs @@ -83,7 +83,7 @@ public void OnOperationReceive(IRequestError error, Response response, long time private static void LogError(Exception ex) { - Logger.Warning("An error occured while recording metrics for a connection operation. Exception = {0}", ex.ToString()); + Logger.Warning("An error occurred while recording metrics for a connection operation. Exception = {0}", ex.ToString()); } } } \ No newline at end of file diff --git a/src/Cassandra/Observers/Metrics/MetricsRequestObserver.cs b/src/Cassandra/Observers/Metrics/MetricsRequestObserver.cs index 5342f0b4b..e6e2d47cc 100644 --- a/src/Cassandra/Observers/Metrics/MetricsRequestObserver.cs +++ b/src/Cassandra/Observers/Metrics/MetricsRequestObserver.cs @@ -198,7 +198,7 @@ private Task OnRequestFinish(Exception ex, SessionRequestInfo r) private static void LogError(Exception ex) { - Logger.Warning("An error occured while recording metrics for a request. Exception = {0}", ex.ToString()); + Logger.Warning("An error occurred while recording metrics for a request. Exception = {0}", ex.ToString()); } public Task OnNodeStartAsync(SessionRequestInfo sessionRequestInfo, NodeRequestInfo nodeRequestInfo) diff --git a/src/Cassandra/Requests/ReprepareHandler.cs b/src/Cassandra/Requests/ReprepareHandler.cs index bedae36ef..d0e605421 100644 --- a/src/Cassandra/Requests/ReprepareHandler.cs +++ b/src/Cassandra/Requests/ReprepareHandler.cs @@ -58,7 +58,7 @@ public async Task ReprepareOnAllNodesWithExistingConnections( if (prepareResult.TriedHosts.ContainsKey(poolKvp.Key.Address)) { PrepareHandler.Logger.Warning( - $"An error occured while attempting to prepare query on {{0}}:{Environment.NewLine}{{1}}", + $"An error occurred while attempting to prepare query on {{0}}:{Environment.NewLine}{{1}}", poolKvp.Key.Address, prepareResult.TriedHosts[poolKvp.Key.Address]); continue; @@ -140,7 +140,7 @@ public async Task ReprepareOnSingleNodeAsync( LogOrThrow( throwException, ex, - $"An error occured while attempting to prepare query on {{0}}:{Environment.NewLine}{{1}}", + $"An error occurred while attempting to prepare query on {{0}}:{Environment.NewLine}{{1}}", poolKvp.Key, ex); if (observer != null) @@ -178,7 +178,7 @@ await observer.OnNodeRequestErrorAsync( LogOrThrow( throwException, ex, - $"An error occured while attempting to prepare query on {{0}}:{Environment.NewLine}{{1}}", + $"An error occurred while attempting to prepare query on {{0}}:{Environment.NewLine}{{1}}", poolKvp.Key, ex); }