[
https://issues.apache.org/jira/browse/HDDS-3374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Siyao Meng updated HDDS-3374:
-----------------------------
Description:
OMVolumeSetOwnerRequest doesn't seem to check if the user is already the owner.
If the user is already the owner, it shouldn't proceed to the update logic,
otherwise the resulting volume list for that user in {{UserVolumeInfo}} would
have duplicate volume entry. As demonstrated in the test case.
-It also doesn't seem to remove the volume from the UserVolumeInfo from the
previous owner.- Checked
[here|https://github.com/apache/hadoop-ozone/blob/80e9f0a7238953e41b06d22f0419f04ab31d4212/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/volume/OMVolumeSetOwnerRequest.java#L152-L153].
[~bharat]
was:
1. OMVolumeSetOwnerRequest doesn't check if the user is already the owner
2. It also doesn't seem to remove the volume from the UserVolumeInfo from the
previous owner.
[~bharat]
> OMVolumeSetOwnerRequest doesn't check if user is already the owner
> ------------------------------------------------------------------
>
> Key: HDDS-3374
> URL: https://issues.apache.org/jira/browse/HDDS-3374
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Reporter: Siyao Meng
> Assignee: Siyao Meng
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> OMVolumeSetOwnerRequest doesn't seem to check if the user is already the
> owner.
> If the user is already the owner, it shouldn't proceed to the update logic,
> otherwise the resulting volume list for that user in {{UserVolumeInfo}} would
> have duplicate volume entry. As demonstrated in the test case.
> -It also doesn't seem to remove the volume from the UserVolumeInfo from the
> previous owner.- Checked
> [here|https://github.com/apache/hadoop-ozone/blob/80e9f0a7238953e41b06d22f0419f04ab31d4212/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/volume/OMVolumeSetOwnerRequest.java#L152-L153].
> [~bharat]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]