Skip to content

Commit

Permalink
Direct: Adds version 3.22.0 (#2777)
Browse files Browse the repository at this point in the history
* Adds improved 449 retry logic to be more aggressive on retries
* Fixes a bug where a InvalidOperationException can occur if a metadata operation fails while multiple item operations are waiting for the result
* Diagnostics: Fix issue causing CPU usage to be NaN intermittently. Related Issue on Github : #2728
  • Loading branch information
j82w authored Oct 6, 2021
1 parent 75f57bc commit c9db38a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ClientOfficialVersion>3.21.0</ClientOfficialVersion>
<ClientPreviewVersion>3.21.0</ClientPreviewVersion>
<ClientPreviewSuffixVersion>preview</ClientPreviewSuffixVersion>
<DirectVersion>3.21.1</DirectVersion>
<DirectVersion>3.22.0</DirectVersion>
<EncryptionVersion>1.0.0-previewV16</EncryptionVersion>
<CustomEncryptionVersion>1.0.0-preview</CustomEncryptionVersion>
<HybridRowVersion>1.1.0-preview3</HybridRowVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,7 @@ private async Task WaitAndAssert(int expectedOperationCount, ConsistencyLevel? e
actualOperationList.AddRange(telemetryInfo.OperationInfo);
actualSystemInformation.AddRange(telemetryInfo.SystemInfo);

// TODO: https://github.com/Azure/azure-cosmos-dotnet-v3/issues/2728
//Assert.AreEqual(2, telemetryInfo.SystemInfo.Count, $"System Information Count doesn't Match; {JsonConvert.SerializeObject(telemetryInfo.SystemInfo)}");
Assert.AreEqual(2, telemetryInfo.SystemInfo.Count, $"System Information Count doesn't Match; {JsonConvert.SerializeObject(telemetryInfo.SystemInfo)}");

Assert.IsNotNull(telemetryInfo.GlobalDatabaseAccountName, "GlobalDatabaseAccountName is null");
Assert.IsNotNull(telemetryInfo.DateTimeUtc, "Timestamp is null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public void EnsureSuccessStatusCode_ThrowsOnFailure_ContainsComplexJsonBody()
}

[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
public void VerifyDocumentClientExceptionWithNullHeader()
{
string errorMessage = "Test Exception!";
Expand All @@ -251,9 +252,6 @@ public void VerifyDocumentClientExceptionWithNullHeader()

string headerValue = "Test" + Guid.NewGuid();
dce.Headers.Add(headerValue, null);

ResponseMessage responseMessage = dce.ToCosmosResponseMessage(null);
Assert.IsNull(responseMessage.Headers.Get(headerValue));
}

[TestMethod]
Expand Down

0 comments on commit c9db38a

Please sign in to comment.