anuengineer commented on a change in pull request #1526: HDDS-2180. Add Object 
ID and update ID on VolumeList Object.
URL: https://github.com/apache/hadoop/pull/1526#discussion_r328362976
 
 

 ##########
 File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/volume/OMVolumeRequest.java
 ##########
 @@ -95,13 +100,18 @@ protected VolumeList addVolumeToOwnerList(VolumeList 
volumeList,
     }
 
     List<String> prevVolList = new ArrayList<>();
+    long objectID = 100;
     if (volumeList != null) {
       prevVolList.addAll(volumeList.getVolumeNamesList());
+      objectID = volumeList.getObjectID();
 
 Review comment:
   Yes, for some reason, when we replace a VolumeList, we do it like this. We 
read the current list, remove or add a new volume, create a new object and then 
write it back. This is reality nothing but a small change in the list of 
volumes. So I keep the same object ID as if Object is same.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to