Skip to content

HDFS-15496. Add UI for deleted snapshots - #2212

Merged
bshashikant merged 3 commits into
apache:trunkfrom
vivekratnavel:HDFS-15496
Aug 13, 2020
Merged

HDFS-15496. Add UI for deleted snapshots#2212
bshashikant merged 3 commits into
apache:trunkfrom
vivekratnavel:HDFS-15496

Conversation

@vivekratnavel

Copy link
Copy Markdown
Contributor

This patch adds a few additional columns to snapshots table in Namenode UI including the snapshot deletion status as shown in the screen-shot below.

Screen Shot 2020-08-10 at 7 33 51 PM

https://issues.apache.org/jira/browse/HDFS-15496

@bshashikant

Copy link
Copy Markdown
Contributor

Thanks @vivekratnavel for putting up the patch. The patch in general looks good. Some comments inline:

  1. Since the patch modifies SnapshotInfo class, let's remove SnapshotStatus.Bean()
  2. Having different column for snapshotName and then snapshot path may not be useful. Instead can we just have one column for the snapshot path (snapshotName is implicit).
  3. Snapshot permission, owner and group added newly to the UI page .. Any specific reason?

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec31m 54sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚mvninstall29m 4strunk passed
+1 💚compile1m 17strunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚compile1m 10strunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
+1 💚checkstyle0m 49strunk passed
+1 💚mvnsite1m 17strunk passed
+1 💚shadedclient16m 20sbranch has no errors when building and testing our client artifacts.
+1 💚javadoc0m 51strunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javadoc1m 21strunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
+0 🆗spotbugs2m 57sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs2m 56strunk passed
_ Patch Compile Tests _
+1 💚mvninstall1m 7sthe patch passed
+1 💚compile1m 9sthe patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javac1m 9sthe patch passed
+1 💚compile1m 2sthe patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
+1 💚javac1m 2sthe patch passed
-0 ⚠️checkstyle0m 39shadoop-hdfs-project/hadoop-hdfs: The patch generated 1 new + 11 unchanged - 0 fixed = 12 total (was 11)
+1 💚mvnsite1m 7sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedclient13m 53spatch has no errors when building and testing our client artifacts.
+1 💚javadoc0m 47sthe patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javadoc1m 20sthe patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
+1 💚findbugs2m 56sthe patch passed
_ Other Tests _
-1 ❌unit121m 54shadoop-hdfs in the patch passed.
+1 💚asflicense0m 42sThe patch does not generate ASF License warnings.
235m 34s
ReasonTests
Failed junit testshadoop.fs.contract.hdfs.TestHDFSContractMultipartUploader
hadoop.hdfs.server.blockmanagement.TestBlockTokenWithDFSStriped
hadoop.hdfs.TestGetFileChecksum
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/1/artifact/out/Dockerfile
GITHUB PR#2212
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 7d2205311312 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 32895f4
Default JavaPrivate Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
checkstylehttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/1/artifact/out/diff-checkstyle-hadoop-hdfs-project_hadoop-hdfs.txt
unithttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Resultshttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/1/testReport/
Max. process+thread count3755 (vs. ulimit of 5500)
modulesC: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
Console outputhttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/1/console
versionsgit=2.17.1 maven=3.6.0 findbugs=4.0.6
Powered byApache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

@bharatviswa504bharatviswa504 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM.

@vivekratnavel

Copy link
Copy Markdown
ContributorAuthor

@bshashikant@bharatviswa504 Thanks for the reviews!

Since the patch modifies SnapshotInfo class, let's remove SnapshotStatus.Bean()

Done

Having different column for snapshotName and then snapshot path may not be useful. Instead can we just have one column for the snapshot path (snapshotName is implicit).

Done

Snapshot permission, owner and group added newly to the UI page .. Any specific reason?

I added these new columns to be consistent with the display of snapshottable directories table and to provide more useful information about snapshots to the user.

Please take another look at the updated patch. Thanks!

@vivekratnavel

Copy link
Copy Markdown
ContributorAuthor

Screen-shot of UI with the latest patch is shown below:

Screen Shot 2020-08-11 at 1 59 00 PM

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 6sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗mvndep3m 14sMaven dependency ordering for branch
+1 💚mvninstall28m 10strunk passed
+1 💚compile4m 18strunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚compile3m 49strunk passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+1 💚checkstyle0m 58strunk passed
+1 💚mvnsite2m 5strunk passed
+1 💚shadedclient18m 49sbranch has no errors when building and testing our client artifacts.
+1 💚javadoc1m 25strunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javadoc1m 52strunk passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+0 🆗spotbugs2m 26sUsed deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌findbugs3m 7shadoop-hdfs-project/hadoop-hdfs in trunk has 2 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for patch
+1 💚mvninstall1m 54sthe patch passed
+1 💚compile4m 10sthe patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javac4m 10sthe patch passed
+1 💚compile3m 42sthe patch passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+1 💚javac3m 42sthe patch passed
+1 💚checkstyle0m 50sthe patch passed
+1 💚mvnsite1m 54sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedclient15m 24spatch has no errors when building and testing our client artifacts.
+1 💚javadoc1m 18sthe patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javadoc1m 49sthe patch passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+1 💚findbugs5m 47sthe patch passed
_ Other Tests _
+1 💚unit1m 59shadoop-hdfs-client in the patch passed.
-1 ❌unit108m 40shadoop-hdfs in the patch passed.
+1 💚asflicense0m 37sThe patch does not generate ASF License warnings.
220m 41s
ReasonTests
Failed junit testshadoop.hdfs.server.sps.TestExternalStoragePolicySatisfier
hadoop.hdfs.server.blockmanagement.TestBlockTokenWithDFSStriped
hadoop.hdfs.TestMultipleNNPortQOP
hadoop.fs.contract.hdfs.TestHDFSContractMultipartUploader
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/2/artifact/out/Dockerfile
GITHUB PR#2212
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 27fff0c16184 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 3fd3aeb
Default JavaPrivate Build-1.8.0_252-8u252-b09-1~18.04-b09
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_252-8u252-b09-1~18.04-b09
findbugshttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/2/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html
unithttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/2/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Resultshttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/2/testReport/
Max. process+thread count2861 (vs. ulimit of 5500)
modulesC: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console outputhttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/2/console
versionsgit=2.17.1 maven=3.6.0 findbugs=4.0.6
Powered byApache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

@bshashikant

Copy link
Copy Markdown
Contributor

Let's remove the permission/owner/group column as these are not really required to show.

@bshashikantbshashikant left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the snapshots will be first grouped by the snapshottable directory and then sorted on the snapshot Ids always ?

@vivekratnavel

Copy link
Copy Markdown
ContributorAuthor

In the latest patch, I removed the permission/owner/group columns. I also verified that the snapshots will be grouped by snapshottable directory and then sorted on the snapshot Ids always.

Screen Shot 2020-08-12 at 1 29 50 PM

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 15sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+0 🆗mvndep3m 19sMaven dependency ordering for branch
+1 💚mvninstall30m 20strunk passed
+1 💚compile5m 46strunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚compile4m 55strunk passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+1 💚checkstyle1m 6strunk passed
+1 💚mvnsite2m 27strunk passed
+1 💚shadedclient19m 14sbranch has no errors when building and testing our client artifacts.
+1 💚javadoc1m 25strunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javadoc1m 52strunk passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+0 🆗spotbugs2m 28sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs5m 35strunk passed
_ Patch Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for patch
+1 💚mvninstall1m 53sthe patch passed
+1 💚compile4m 10sthe patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javac4m 10sthe patch passed
+1 💚compile3m 45sthe patch passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+1 💚javac3m 45sthe patch passed
+1 💚checkstyle0m 51sthe patch passed
+1 💚mvnsite1m 55sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚shadedclient15m 28spatch has no errors when building and testing our client artifacts.
+1 💚javadoc1m 18sthe patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
+1 💚javadoc1m 45sthe patch passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09
+1 💚findbugs5m 41sthe patch passed
_ Other Tests _
+1 💚unit1m 57shadoop-hdfs-client in the patch passed.
-1 ❌unit108m 49shadoop-hdfs in the patch passed.
+1 💚asflicense0m 36sThe patch does not generate ASF License warnings.
226m 13s
ReasonTests
Failed junit testshadoop.hdfs.TestStripedFileAppend
hadoop.fs.contract.hdfs.TestHDFSContractMultipartUploader
hadoop.hdfs.TestRollingUpgrade
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/3/artifact/out/Dockerfile
GITHUB PR#2212
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 815c830f6860 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / e592ec5
Default JavaPrivate Build-1.8.0_252-8u252-b09-1~18.04-b09
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_252-8u252-b09-1~18.04-b09
unithttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/3/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Resultshttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/3/testReport/
Max. process+thread count2796 (vs. ulimit of 5500)
modulesC: hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project
Console outputhttps://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2212/3/console
versionsgit=2.17.1 maven=3.6.0 findbugs=4.0.6
Powered byApache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

@bshashikant
bshashikant merged commit cb50e3f into apache:trunkAug 13, 2020
jojochuang pushed a commit to jojochuang/hadoop that referenced this pull request May 23, 2023
(cherry picked from commit cb50e3f)
Change-Id: I7bd4ee15468f0c36c989ba91c16fe97d6cc6d08e
(cherry picked from commit d0b27ff)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@vivekratnavel@bshashikant@hadoop-yetus@bharatviswa504