Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nio file store2 #7857

Merged
merged 5 commits into from
Jan 31, 2020
Merged

Nio file store2 #7857

merged 5 commits into from
Jan 31, 2020

Conversation

rickle-msft
Copy link
Contributor

No description provided.

* {@inheritDoc}
*/
public class AzureStorageFileAttributeView implements FileAttributeView {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This type was created in this PR so that the AzureFileStore type can accurately say it is supported, but it will be given actual functionality in a later PR when setting blob/file attributes is added.

* {@inheritDoc}
*/
@Override
public long getTotalSpace() throws IOException {
return 0;
return Long.MAX_VALUE;
Copy link
Member

Choose a reason for hiding this comment

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

Would -1 or a public constant be a better value for this to have clear indication that this is a unique value and shouldn't be used to determine code paths or in validation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I imagine there might be scenarios where customers might try to compare the amount of space in a store with the (possibly predicted) amount of data they have. In that case, a getTotalSpace() > dataSize check would always fail. Just speculation, though. Thoughts?

@alzimmermsft alzimmermsft self-requested a review January 31, 2020 01:21
@rickle-msft
Copy link
Contributor Author

/azp run java - storage - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rickle-msft rickle-msft merged commit 2033113 into Azure:master Jan 31, 2020
srnagar pushed a commit to srnagar/azure-sdk-for-java that referenced this pull request Feb 4, 2020
* Implemented fileStoreAttributeView

* file store tests

* Added recordings

* PR feedback

* checkstyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants