[
https://issues.apache.org/jira/browse/HDDS-2170?focusedWorklogId=317459&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-317459
]
ASF GitHub Bot logged work on HDDS-2170:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Sep/19 12:51
Start Date: 24/Sep/19 12:51
Worklog Time Spent: 10m
Work Description: anuengineer commented on 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]
Issue Time Tracking
-------------------
Worklog Id: (was: 317459)
Time Spent: 1h 10m (was: 1h)
> Add Object IDs and Update ID to Volume Object
> ---------------------------------------------
>
> Key: HDDS-2170
> URL: https://issues.apache.org/jira/browse/HDDS-2170
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Reporter: Anu Engineer
> Assignee: Anu Engineer
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> This patch proposes to add object ID and update ID when a volume is created.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]