StevenLuMT commented on code in PR #3522:
URL: https://github.com/apache/bookkeeper/pull/3522#discussion_r1003087400


##########
bookkeeper-server/src/test/java/org/apache/bookkeeper/util/collections/ConcurrentLongHashMapTest.java:
##########
@@ -117,6 +119,41 @@ public void testClear() {
         assertTrue(map.capacity() == 4);
     }
 
+    private void addSpecifyIncrement(ConcurrentLongHashMap<byte[]> mkc, int 
start, int end) {
+        for (int i = start; i <= end; i++) {
+            assertNull(mkc.put(i, ("comment:" + i).getBytes(UTF_8)));
+            System.out.println("i=" + i + ",mkc.size=" + mkc.size() + 
",mkc.capacity=" + mkc.capacity());

Review Comment:
   done



##########
bookkeeper-server/src/test/java/org/apache/bookkeeper/util/collections/ConcurrentLongHashMapTest.java:
##########
@@ -117,6 +119,41 @@ public void testClear() {
         assertTrue(map.capacity() == 4);
     }
 
+    private void addSpecifyIncrement(ConcurrentLongHashMap<byte[]> mkc, int 
start, int end) {
+        for (int i = start; i <= end; i++) {
+            assertNull(mkc.put(i, ("comment:" + i).getBytes(UTF_8)));
+            System.out.println("i=" + i + ",mkc.size=" + mkc.size() + 
",mkc.capacity=" + mkc.capacity());
+        }
+    }
+
+    private void removeSpecifyIncrement(ConcurrentLongHashMap<byte[]> mkc, int 
start, int end) {
+        for (int i = end; i >= start; i--) {
+            assertNotNull(mkc.remove(i));
+            System.out.println("i=" + i + ",mkc.size=" + mkc.size() + 
",mkc.capacity=" + mkc.capacity());

Review Comment:
   done



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