Skip to content

Commit dec8784

Browse files
authored
Merge pull request #7718 from markcowl/dlsnewt
Update DataLakeStore data plane library
2 parents 43cad7e + 344b0e1 commit dec8784

12 files changed

+27
-12
lines changed

src/ResourceManager/DataLakeStore/Commands.DataLakeStore.Test/packages.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<package id="Microsoft.Rest.ClientRuntime.Azure.TestFramework" version="1.5.1-preview" targetFramework="net45" />
2020
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
2121
<package id="Moq" version="4.2.1510.2205" targetFramework="net45" />
22-
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net452" />
2322
<package id="xunit" version="2.1.0" targetFramework="net45" />
2423
<package id="xunit.abstractions" version="2.0.0" targetFramework="net45" />
2524
<package id="xunit.assert" version="2.1.0" targetFramework="net45" />

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Update the DataLake package to 1.1.10.
22+
* Add default Concurrency to multithreaded operations.
2123

2224
## Version 6.2.0
2325
* Adding support for Virtual Network Rules

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Commands.DataLakeStore.Netcore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</PropertyGroup>
3333

3434
<ItemGroup>
35-
<PackageReference Include="Microsoft.Azure.DataLake.Store" Version="1.1.9" />
35+
<PackageReference Include="Microsoft.Azure.DataLake.Store" Version="1.1.10" />
3636
<PackageReference Include="Microsoft.Azure.Management.DataLake.Store" Version="2.4.2-preview" />
3737
<PackageReference Include="NLog" Version="4.5.0" />
3838
<PackageReference Include="System.Net.Requests" Version="4.3.0" />

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Commands.DataLakeStore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<ItemGroup>
4040
<Reference Include="Microsoft.Azure.DataLake.Store, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4141
<SpecificVersion>False</SpecificVersion>
42-
<HintPath>..\..\..\packages\Microsoft.Azure.DataLake.Store.1.1.9\lib\net452\Microsoft.Azure.DataLake.Store.dll</HintPath>
42+
<HintPath>..\..\..\packages\Microsoft.Azure.DataLake.Store.1.1.10\lib\net452\Microsoft.Azure.DataLake.Store.dll</HintPath>
4343
<Private>True</Private>
4444
</Reference>
4545
<Reference Include="Microsoft.Azure.Management.DataLake.Store, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneCommands/ExportAzureRmDataLakeStoreChildItemProperties.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ public class ExportAzureRmDataLakeStoreChildItemProperties : DataLakeStoreFileSy
8585

8686
public override void ExecuteCmdlet()
8787
{
88+
// Currently SDK default thread calculation is not correct, so pass a default thread count
89+
int threadCount = Concurrency == -1 ? DataLakeStoreFileSystemClient.ImportExportMaxThreads : Concurrency;
90+
8891
DataLakeStoreFileSystemClient.GetFileProperties(Account, Path.TransformedPath, GetAcl, OutputPath,
89-
GetDiskUsage, !SaveToAdl, Concurrency, IncludeFile, HideConsistentAcl, MaximumDepth, this, CmdletCancellationToken);
92+
GetDiskUsage, !SaveToAdl, threadCount, IncludeFile, HideConsistentAcl, MaximumDepth, this, CmdletCancellationToken);
9093
if (PassThru)
9194
{
9295
WriteObject(true);

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneCommands/ExportAzureRmDataLakeStoreItem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ public override void ExecuteCmdlet()
123123
DataLakeStoreFileSystemClient.SetupFileLogging(DiagnosticLogLevel, diagnosticPath);
124124
}
125125

126-
int threadCount = Concurrency;
126+
// Currently SDK default thread calculation is not correct, so pass a default thread count
127+
int threadCount = Concurrency == -1 ? DataLakeStoreFileSystemClient.ImportExportMaxThreads : Concurrency;
127128
DataLakeStoreFileSystemClient.BulkCopy(powerShellReadyPath, Account,
128129
Path.TransformedPath, CmdletCancellationToken, threadCount, Recurse, Force, Resume, true, this);
129130
WriteObject(powerShellReadyPath);

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneCommands/ImportAzureRmDataLakeStoreItem.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ public override void ExecuteCmdlet()
132132
DataLakeStoreFileSystemClient.SetupFileLogging(DiagnosticLogLevel, diagnosticPath);
133133
}
134134

135-
int threadCount = Concurrency;
135+
// Currently SDK default thread calculation is not correct, so pass a default thread count
136+
int threadCount = Concurrency == -1 ? DataLakeStoreFileSystemClient.ImportExportMaxThreads : Concurrency;
137+
136138
DataLakeStoreFileSystemClient.BulkCopy(Destination.TransformedPath, Account,
137139
powerShellSourcePath, CmdletCancellationToken, threadCount, Recurse, Force, Resume, false, this, ForceBinary);
138140
// only attempt to write output if this cmdlet hasn't been cancelled.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneCommands/RemoveAzureRmDataLakeStoreItemAclEntry.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ public override void ExecuteCmdlet()
110110
{
111111
if (Recurse)
112112
{
113+
// Currently SDK default thread calculation is not correct, so pass a default thread count
114+
int threadCount = Concurrency == -1 ? DataLakeStoreFileSystemClient.ImportExportMaxThreads : Concurrency;
115+
113116
DataLakeStoreFileSystemClient.ChangeAclRecursively(Path.TransformedPath,
114-
Account, aclSpec, RequestedAclType.RemoveAcl, Concurrency, this, ShowProgress, CmdletCancellationToken);
117+
Account, aclSpec, RequestedAclType.RemoveAcl, threadCount, this, ShowProgress, CmdletCancellationToken);
115118
}
116119
else
117120
{

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneCommands/SetAzureRmDataLakeStoreItemAcl.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ public override void ExecuteCmdlet()
8080
{
8181
if (Recurse)
8282
{
83-
DataLakeStoreFileSystemClient.ChangeAclRecursively(Path.TransformedPath,
83+
// Currently SDK default thread calculation is not correct, so pass a default thread count
84+
int threadCount = Concurrency == -1 ? DataLakeStoreFileSystemClient.ImportExportMaxThreads : Concurrency;
85+
86+
DataLakeStoreFileSystemClient.ChangeAclRecursively(Path.TransformedPath,
8487
Account,
85-
Acl.Select(entry => entry.ParseDataLakeStoreItemAce()).ToList(), RequestedAclType.SetAcl, Concurrency, this, ShowProgress, CmdletCancellationToken);
88+
Acl.Select(entry => entry.ParseDataLakeStoreItemAce()).ToList(), RequestedAclType.SetAcl, threadCount, this, ShowProgress, CmdletCancellationToken);
8689
}
8790
else
8891
{

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneCommands/SetAzureRmDataLakeStoreItemAclEntry.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,12 @@ public override void ExecuteCmdlet()
122122
{
123123
if (Recurse)
124124
{
125+
// Currently SDK default thread calculation is not correct, so pass a default thread count
126+
int threadCount = Concurrency == -1 ? DataLakeStoreFileSystemClient.ImportExportMaxThreads : Concurrency;
125127

126128
DataLakeStoreFileSystemClient.ChangeAclRecursively(Path.TransformedPath,
127129
Account,
128-
aclSpec, RequestedAclType.ModifyAcl, Concurrency, this, ShowProgress, CmdletCancellationToken);
130+
aclSpec, RequestedAclType.ModifyAcl, threadCount, this, ShowProgress, CmdletCancellationToken);
129131
}
130132
else
131133
{

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/DataPlaneModels/DataLakeStoreFileSystemClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class DataLakeStoreFileSystemClient
4646
private readonly Random _uniqueActivityIdGenerator;
4747
private const int MaxConnectionLimit = 1000;
4848
private const long NeverExpireValue = 253402300800000;
49-
internal const int ImportExportMaxThreads = 256;
49+
internal const int ImportExportMaxThreads = 128;
5050
private readonly LoggingConfiguration _adlsLoggerConfig;
5151
private readonly bool _isDebugEnabled;
5252
private const int DebugMessageFlushThreshold = 500;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Azure.DataLake.Store" version="1.1.9" targetFramework="net452" />
3+
<package id="Microsoft.Azure.DataLake.Store" version="1.1.10" targetFramework="net452" />
44
<package id="Microsoft.Azure.Management.DataLake.Store" version="2.4.2-preview" targetFramework="net452" />
55
<package id="NLog" version="4.4.12" targetFramework="net452" />
66
</packages>

0 commit comments

Comments
 (0)