You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/12/19 17:01:15 UTC
[GitHub] [ozone] sadanand48 opened a new pull request, #4108: HDDS-7682. [Snapshot] Snapdiff showing incorrect result.
sadanand48 opened a new pull request, #4108:
URL: https://github.com/apache/ozone/pull/4108
## What changes were proposed in this pull request?
Fix issue which shows key as modified
```java
bash-4.2$ ozone sh volume create vol1
bash-4.2$ ozone sh bucket create vol1/buck1
bash-4.2$ ozone sh key put vol1/buck1/key1
bash-4.2$ ozone sh snapshot create vol1/buck1 snap1
bash-4.2$ ozone sh snapshot create vol1/buck1 snap2
bash-4.2$ ozone sh snapshot snapshotDiff vol1/buck1 snap1 snap2
Difference between snapshot snap1 and snapshot snap2:
M key1
```
Also fixed snapdiff for FSO files (not directories , will add fix for dirs in the next revision)
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-7682
## How was this patch tested?
Added Basic Snapdiff unit tests
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] smengcl commented on a diff in pull request #4108: HDDS-7607. [Snapshot] SnapshotDiff command lists unmodified file as modified
Posted by GitBox <gi...@apache.org>.
smengcl commented on code in PR #4108:
URL: https://github.com/apache/ozone/pull/4108#discussion_r1054572179
##########
hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/helpers/TestOmKeyInfo.java:
##########
@@ -145,7 +145,7 @@ private void createdAndTest(boolean isMPU) {
// Because for OmKeyLocationInfoGroup we have not implemented equals()
// method, so it checks only references.
- Assert.assertNotEquals(key, cloneKey);
+ Assert.assertEquals(key, cloneKey);
Review Comment:
Reason behind this line change? Was this test broken?
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] smengcl merged pull request #4108: HDDS-7607. [Snapshot] SnapshotDiff command lists unmodified file as modified
Posted by GitBox <gi...@apache.org>.
smengcl merged PR #4108:
URL: https://github.com/apache/ozone/pull/4108
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] smengcl commented on a diff in pull request #4108: HDDS-7607. [Snapshot] SnapshotDiff command lists unmodified file as modified
Posted by GitBox <gi...@apache.org>.
smengcl commented on code in PR #4108:
URL: https://github.com/apache/ozone/pull/4108#discussion_r1060879723
##########
hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/helpers/TestOmKeyInfo.java:
##########
@@ -145,7 +145,7 @@ private void createdAndTest(boolean isMPU) {
// Because for OmKeyLocationInfoGroup we have not implemented equals()
// method, so it checks only references.
- Assert.assertNotEquals(key, cloneKey);
+ Assert.assertEquals(key, cloneKey);
Review Comment:
Oh, got it.
Now that we implemented equals() in OmKeyLocationInfoGroup, should we change the comment right above this line as well?
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] smengcl commented on a diff in pull request #4108: HDDS-7607. [Snapshot] SnapshotDiff command lists unmodified file as modified
Posted by GitBox <gi...@apache.org>.
smengcl commented on code in PR #4108:
URL: https://github.com/apache/ozone/pull/4108#discussion_r1060893672
##########
hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/helpers/TestOmKeyInfo.java:
##########
@@ -145,7 +145,7 @@ private void createdAndTest(boolean isMPU) {
// Because for OmKeyLocationInfoGroup we have not implemented equals()
// method, so it checks only references.
- Assert.assertNotEquals(key, cloneKey);
+ Assert.assertEquals(key, cloneKey);
Review Comment:
I've updated the comment accordingly.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] smengcl commented on pull request #4108: HDDS-7607. [Snapshot] SnapshotDiff command lists unmodified file as modified
Posted by GitBox <gi...@apache.org>.
smengcl commented on PR #4108:
URL: https://github.com/apache/ozone/pull/4108#issuecomment-1370148967
Thanks @sadanand48 for the fix!
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sadanand48 commented on a diff in pull request #4108: HDDS-7607. [Snapshot] SnapshotDiff command lists unmodified file as modified
Posted by GitBox <gi...@apache.org>.
sadanand48 commented on code in PR #4108:
URL: https://github.com/apache/ozone/pull/4108#discussion_r1061202126
##########
hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/helpers/TestOmKeyInfo.java:
##########
@@ -145,7 +145,7 @@ private void createdAndTest(boolean isMPU) {
// Because for OmKeyLocationInfoGroup we have not implemented equals()
// method, so it checks only references.
- Assert.assertNotEquals(key, cloneKey);
+ Assert.assertEquals(key, cloneKey);
Review Comment:
I was out for a while . Thanks @smengcl for updating the PR :)
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] smengcl commented on a diff in pull request #4108: HDDS-7607. [Snapshot] SnapshotDiff command lists unmodified file as modified
Posted by GitBox <gi...@apache.org>.
smengcl commented on code in PR #4108:
URL: https://github.com/apache/ozone/pull/4108#discussion_r1060879723
##########
hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/helpers/TestOmKeyInfo.java:
##########
@@ -145,7 +145,7 @@ private void createdAndTest(boolean isMPU) {
// Because for OmKeyLocationInfoGroup we have not implemented equals()
// method, so it checks only references.
- Assert.assertNotEquals(key, cloneKey);
+ Assert.assertEquals(key, cloneKey);
Review Comment:
Oh, got it.
Now that we implemented equals() in OmKeyLocationInfoGroup, should we change the command right above this line as well?
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org