anuengineer commented on a change in pull request #1510: HDDS-2170. Add Object
IDs and Update ID to Volume Object
URL: https://github.com/apache/hadoop/pull/1510#discussion_r327595783
##########
File path:
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmVolumeArgs.java
##########
@@ -188,6 +237,29 @@ public int hashCode() {
private long quotaInBytes;
private Map<String, String> metadata;
private OmOzoneAclMap aclMap;
+ private long objectID;
+ private long updateID;
+
+ /**
+ * Sets the Object ID for this Object.
+ * Object ID are unique and immutable identifier for each object in the
+ * System.
+ * @param objectID - long
+ */
+ public void setObjectID(long objectID) {
+ this.objectID = objectID;
Review comment:
Object ID represents a unique Identity for an object. Update ID represents
a token that is useful to detect if an object has been changed after a read has
been performed. For example, with update IDs I can cache an object and make
changes, and when I apply I can detect if an object has been updated by any
other thread.
----------------------------------------------------------------
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]