Skip to content

HDDS-10793. HttpFS gateway should throw unsupported operation for some operations#6645

Merged
fapifta merged 2 commits intoapache:masterfrom
dombizita:HDDS-10793
May 6, 2024
Merged

HDDS-10793. HttpFS gateway should throw unsupported operation for some operations#6645
fapifta merged 2 commits intoapache:masterfrom
dombizita:HDDS-10793

Conversation

@dombizita
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

We didn't have and still don't have support for home directory or trash root in Ozone. The default Filesystem implementation has these implemented, so we had that behaviour in Ozone too, but this can lead to confusion (eg. the home "directory" is actually a bucket under the specific user volume, as we returned /user/username).

With this change we'll throw unsupported operation exception for the GETHOMEDIRECTORY and the GETTRASHROOT operations. I also removed the test cases for these operations. The Ozone HttpFS documentation already stated, that these operations are unsupported, so I didn't need to change that.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10793

How was this patch tested?

CI: https://github.com/dombizita/ozone/actions/runs/8968724724

dombizita added 2 commits May 6, 2024 14:02
…exception

Change-Id: I0bbb7f722b405d5fa2ecf7c841f43082e55286c3
Change-Id: I354d0bbb1d2476e07c9d2ca2b1e0be3ee1ba265e
@dombizita dombizita requested a review from fapifta May 6, 2024 14:29
Copy link
Copy Markdown
Contributor

@fapifta fapifta left a comment

Choose a reason for hiding this comment

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

Thank you for bringing this up @dombizita, +1.

@fapifta fapifta merged commit db2e507 into apache:master May 6, 2024
jojochuang pushed a commit to jojochuang/ozone that referenced this pull request May 29, 2024
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.

2 participants