Skip to content

Conversation

@seanmcc-msft
Copy link
Member

No description provided.

@amnguye
Copy link
Member

amnguye commented Oct 18, 2019

/azp run net - storage - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@seanmcc-msft seanmcc-msft added Data Lake Store Storage Storage Service (Queues, Blobs, Files) labels Oct 18, 2019
@seanmcc-msft
Copy link
Member Author

/azp run net - storage - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - ci

@seanmcc-msft seanmcc-msft marked this pull request as ready for review October 19, 2019 00:15
@seanmcc-msft
Copy link
Member Author

/azp run net - storage - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@seanmcc-msft seanmcc-msft force-pushed the storage/features/DataLake branch from 2045d50 to 7e36037 Compare October 21, 2019 18:42
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This references Files too?

Copy link
Member Author

@seanmcc-msft seanmcc-msft Oct 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't, but oddly when I remove this project reference, I'm no longer able to reference System.Text.Json in the DataLake package.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried copying https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files/src/Azure.Storage.Files.csproj#L22 verbatim? If you install via NuGet it'll add a version which our build system will complain about (to ensure Files doesn't use one version and DataLake another). If that doesn't fix it easily, it's fine to check in like this but please file a bug so it's dealt with before we release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one can't be skipped. Every ClientOptions needs to have a ServiceVersion enum and take it in the .ctor following the pattern.

Copy link
Member Author

@seanmcc-msft seanmcc-msft Oct 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? DataLakeClientOptions extends BlobClientOptions, so it has the ServiceVersion enum and exposes its parent's constructors.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I guess maybe deriving from BlobClientOptions is more of the problem here. I'm not sure we should do that, but that's a GREAT thing to discuss during the API review on Thursday. Let's go in like this for now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I derived from BlobClientOptions because I don't see a reason why DataLakeClientOptions shouldn't be identical to BlobClientOptions other than the name of the class, and the namespace. Why write extra code for the same functionality?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't feel sufficient because Dfs in my account name would trigger it. Could we write a DataLakeUriBuilder that takes this apart a little safer?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good idea.

The overall problem I'm trying to solved with the Uris is that we need the DFS Uri, the Blob Uri, and want to return the original Uri the customer provided when they call DataLakeServiceClient.Uri.

Do you think we should have a DataLakeUriBuilder and a BlobUriBuilder in the DataLake namespace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just add a DataLakeUriBuilder and have ToDataLakeUri and ToBlobUri methods on it that puts the prefix in the right location.

@seanmcc-msft seanmcc-msft force-pushed the storage/features/DataLake branch 3 times, most recently from 29bf217 to 6048b90 Compare October 21, 2019 22:48
@seanmcc-msft seanmcc-msft force-pushed the storage/features/DataLake branch from d4df143 to d137727 Compare October 23, 2019 03:19
This was referenced Oct 24, 2019
@seanmcc-msft seanmcc-msft added Client This issue is related to a non-management package Data Lake Storage Gen2 and removed Data Lake Store labels Oct 24, 2019
@seanmcc-msft seanmcc-msft merged commit 50cfba4 into Azure:master Oct 25, 2019
@seanmcc-msft seanmcc-msft deleted the storage/features/DataLake branch October 25, 2019 03:05
@amnguye amnguye assigned amnguye and unassigned amnguye Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue is related to a non-management package Data Lake Storage Gen2 Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants