-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDFS-15483. Ordered snapshot deletion: Disallow rename between two snapshottable directories. #2172
Conversation
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch @bshashikant . The patch looks good to me. Some minor comments.
...-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java
Outdated
Show resolved
Hide resolved
...roject/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirSnapshotOp.java
Outdated
Show resolved
Hide resolved
.../test/java/org/apache/hadoop/hdfs/server/namenode/TestRenameWithOrderedSnapshotDeletion.java
Outdated
Show resolved
Hide resolved
.../test/java/org/apache/hadoop/hdfs/server/namenode/TestRenameWithOrderedSnapshotDeletion.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the patch @bshashikant. +1 the patch looks good to me.
...-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
the code has to be updated as the method isSnapshotDeletionOrdered() got removed |
6058607
to
70f6603
Compare
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @bshashikant . Some comments inlined.
...doop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/snapshot/SnapshotManager.java
Outdated
Show resolved
Hide resolved
...roject/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirSnapshotOp.java
Outdated
Show resolved
Hide resolved
...roject/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirSnapshotOp.java
Outdated
Show resolved
Hide resolved
...roject/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirSnapshotOp.java
Outdated
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 the latest change looks good.
...-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirRenameOp.java
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
+1 |
thanks @bshashikant for the contribution , thanks @szetszwo @mukul1987 for the reveiw |
…apshottable directories. (apache#2172) (cherry picked from commit 092bfe7) Change-Id: I4d2b8105dc2f9fbebb9c79100edfb1b1c36f3347 (cherry picked from commit 4efcff0)
please check https://issues.apache.org/jira/browse/HDFS-15483