Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/Cassandra/Connections/IRequestError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace Cassandra.Connections
{
/// <summary>
/// Represents an error that occured during a request.
/// Represents an error that occurred during a request.
/// </summary>
internal interface IRequestError
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cassandra/Exceptions/InitFatalErrorException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
2 changes: 1 addition & 1 deletion src/Cassandra/Exceptions/ReadFailureException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class ReadFailureException : QueryExecutionException
/// <item><term>0x0004</term><description>Some 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).</description></item>
/// logged on the actual replica on which the problem occurred).</description></item>
/// <item><term>0x0005</term><description>The 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.</description></item>
Expand Down
2 changes: 1 addition & 1 deletion src/Cassandra/Exceptions/WriteFailureException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class WriteFailureException : QueryExecutionException
/// <item><term>0x0004</term><description>Some 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).</description></item>
/// logged on the actual replica on which the problem occurred).</description></item>
/// <item><term>0x0005</term><description>The 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.</description></item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
2 changes: 1 addition & 1 deletion src/Cassandra/Observers/Metrics/MetricsRequestObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/Cassandra/Requests/ReprepareHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);
}
Expand Down