milleruntime commented on a change in pull request #1779:
URL: https://github.com/apache/accumulo/pull/1779#discussion_r524453508
##########
File path: core/src/test/java/org/apache/accumulo/core/data/NamespaceIdTest.java
##########
@@ -79,12 +79,13 @@ public void testCacheIncreasesAndDecreasesAfterGC() {
assertEquals(namespaceString, nsId.canonical());
// create a bunch more and throw them away
- for (int i = 0; i < 999; i++) {
- NamespaceId.of(new String("namespace" + i));
+ long preGCSize = 0;
+ int i = 0;
+ while ((preGCSize = NamespaceId.cache.asMap().entrySet().stream().count())
< 100) {
Review comment:
Ah thank you. I was racking my brain trying to figure out the
difference between the two.
----------------------------------------------------------------
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]