ArafatKhan2198 commented on code in PR #6492:
URL: https://github.com/apache/ozone/pull/6492#discussion_r1583242681
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/codec/NSSummaryCodec.java:
##########
@@ -117,6 +120,14 @@ public NSSummary fromPersistedFormat(byte[] rawData)
throws IOException {
assert (bytesRead == strLen);
String dirName = stringCodec.fromPersistedFormat(buffer);
res.setDirName(dirName);
+ long parentId = in.readLong();
+ if (parentId == 0) {
+ // Set the parent ID to -1 to indicate that it is old data from
+ // the cluster and the value has not yet been set.
+ res.setParentId(-1);
Review Comment:
`Zero` represents it does not have a parent ID but the data is newly
created. And `-1` signifies that this is an old data and will need a full
reprocess trigger.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]