karthikhw commented on a change in pull request #1870: HDFS-15201
SnapshotCounter hits MaxSnapshotID limit
URL: https://github.com/apache/hadoop/pull/1870#discussion_r387953842
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotManager.java
##########
@@ -92,4 +92,15 @@ public void testSnapshotLimits() throws Exception {
StringUtils.toLowerCase(se.getMessage()).contains("rollover"));
}
}
+
+
+ @Test
+ public void testValidateSnapshotIDWidth() {
+ FSDirectory fsdir = mock(FSDirectory.class);
+ SnapshotManager snapshotManager = new SnapshotManager(new Configuration(),
+ fsdir);
+ Assert.assertTrue(snapshotManager.
Review comment:
Added!
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]