Skip to content

Commit

Permalink
[Internal] Direct: Add version 3.10.0 (#1578)
Browse files Browse the repository at this point in the history
* [Internal] Direct: Add version 3.10.0
  • Loading branch information
j82w authored Jun 1, 2020
1 parent b091054 commit 3c0406b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<ClientOfficialVersion>3.9.1</ClientOfficialVersion>
<ClientPreviewVersion>3.9.1</ClientPreviewVersion>
<DirectVersion>3.9.0</DirectVersion>
<DirectVersion>3.10.0</DirectVersion>
<EncryptionVersion>1.0.0-preview4</EncryptionVersion>
<HybridRowVersion>1.0.0-preview</HybridRowVersion>
<AboveDirBuildProps>$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))</AboveDirBuildProps>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ public override void Visit(StoreResponseStatistics storeResponseStatistics)

if (storeResponseStatistics.StoreResult != null)
{
this.jsonWriter.WritePropertyName("ActivityId");
this.jsonWriter.WriteValue(storeResponseStatistics.StoreResult.ActivityId);

this.jsonWriter.WritePropertyName("StoreResult");
this.jsonWriter.WriteValue(storeResponseStatistics.StoreResult.ToString());
}
Expand Down
5 changes: 5 additions & 0 deletions Microsoft.Azure.Cosmos/src/Regions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,10 @@ public static class Regions
/// Name of the Azure Norway West region in the Azure Cosmos DB service.
/// </summary>
public const string NorwayWest = "Norway West";

/// <summary>
/// Name of the Azure Brazil Southeast region in the Azure Cosmos DB service.
/// </summary>
public const string BrazilSoutheast = "Brazil Southeast";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ private static void ThrowTransportExceptionOnItemOperation(
numberOfReadRegions: 1,
itemLSN: 5,
sessionToken: null,
usingLocalLSN: true));
usingLocalLSN: true,
activityId: Guid.NewGuid().ToString()));

throw Documents.Rntbd.TransportExceptions.GetServiceUnavailableException(physicalAddress, Guid.NewGuid(),
transportException);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ public void ValidateClientSideRequestStatisticsToString()
numberOfReadRegions: 1,
itemLSN: 5,
sessionToken: null,
usingLocalLSN: true));
usingLocalLSN: true,
activityId: Guid.NewGuid().ToString()));

string statistics = clientSideRequestStatistics.ToString();
Assert.AreEqual("Please see CosmosDiagnostics", statistics);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4433,6 +4433,11 @@
"Attributes": [],
"MethodInfo": null
},
"System.String BrazilSoutheast": {
"Type": "Field",
"Attributes": [],
"MethodInfo": null
},
"System.String CanadaCentral": {
"Type": "Field",
"Attributes": [],
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- [#1578](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1578) Query: Add optimization to access the stream buffer

### Fixed

- [#1578](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1578) ApplicationRegion: Fix ApplicationRegion to ensure the correct order is being used for failover scenarios

## <a name="3.9.1"/> [3.9.1](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.9.1) - 2020-05-19
## <a name="3.9.1-preview"/> [3.9.1-preview](https://www.nuget.org/packages/Microsoft.Azure.Cosmos/3.9.1-preview) - 2020-05-19

Expand Down

0 comments on commit 3c0406b

Please sign in to comment.