z-york commented on a change in pull request #3426:
URL: https://github.com/apache/hbase/pull/3426#discussion_r658561311



##########
File path: 
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestSplitTransactionOnCluster.java
##########
@@ -504,7 +504,7 @@ public void testShutdownFixupWhenDaughterHasSplit() throws 
Exception {
   private void clearReferences(HRegion region) throws IOException {
     // Presumption.
     assertEquals(1, region.getStores().size());
-    HStore store = region.getStores().get(0);
+    HStore store = new ArrayList<>(region.getStores()).get(0);

Review comment:
       minor: you can replace with Iterables.getOnlyElement() here




-- 
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]


Reply via email to