comnetwork commented on a change in pull request #3531:
URL: https://github.com/apache/hbase/pull/3531#discussion_r680299171



##########
File path: 
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMemStoreChunkPool.java
##########
@@ -240,19 +243,24 @@ public void testPutbackChunksMultiThreaded() throws 
Exception {
     ChunkCreator.instance = newCreator;// Replace the global ref with the new 
one we created.
                                              // Used it for the testing. Later 
in finally we put
                                              // back the original
+    final Throwable[] exceptions = new Throwable[1];
     final KeyValue kv = new KeyValue(Bytes.toBytes("r"), Bytes.toBytes("f"), 
Bytes.toBytes("q"),
         new byte[valSize]);
     try {
       Runnable r = new Runnable() {
         @Override
         public void run() {
-          MemStoreLAB memStoreLAB = new MemStoreLABImpl(conf);
-          for (int i = 0; i < maxCount; i++) {
-            memStoreLAB.copyCellInto(kv);// Try allocate size = chunkSize. 
Means every
-                                         // allocate call will result in a new 
chunk
+          try {
+            MemStoreLAB memStoreLAB = new MemStoreLABImpl(conf);
+            for (int i = 0; i < maxCount; i++) {
+              memStoreLAB.copyCellInto(kv);// Try allocate size = chunkSize. 
Means every

Review comment:
       Modified.




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


Reply via email to