subrat-mishra commented on code in PR #5468:
URL: https://github.com/apache/hbase/pull/5468#discussion_r1366708081
##########
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetchRSClose.java:
##########
@@ -114,6 +117,15 @@ public void testPrefetchPersistence() throws Exception {
// should exist.
assertTrue(new File(testDir + "/bucket.persistence").exists());
+ HRegionServer regionServingRS =
cluster.getRegionServer(1).getRegions(tableName).size() == 1
+ ? cluster.getRegionServer(1)
+ : cluster.getRegionServer(0);
+
+ Admin admin = TEST_UTIL.getAdmin();
+ List<String> prefetchedFilesList =
+ admin.getPrefetchedFilesList(regionServingRS.getServerName());
+ assertEquals(1, ((List<?>) prefetchedFilesList).size());
Review Comment:
Nit: (List<?>) Redundant cast can be removed as prefetchedFilesList type is
List<String>
--
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]