accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [accumulo] adamjshook commented on a change in pull request #1107: Fix ConcurrentModificationException in HostRegexTableLoadBalancer
Date Thu, 18 Apr 2019 16:39:10 GMT
adamjshook commented on a change in pull request #1107: Fix ConcurrentModificationException
in HostRegexTableLoadBalancer
URL: https://github.com/apache/accumulo/pull/1107#discussion_r276743286
 
 

 ##########
 File path: server/base/src/main/java/org/apache/accumulo/server/master/balancer/HostRegexTableLoadBalancer.java
 ##########
 @@ -244,11 +245,15 @@ protected void parseConfiguration(ServerConfiguration conf) {
             }
             String tableName = customProp.getKey().substring(HOST_BALANCER_PREFIX.length());
             String regex = customProp.getValue();
-            poolNameToRegexPattern.put(tableName, Pattern.compile(regex));
+            poolNameToRegexPatternBuilder.put(tableName, Pattern.compile(regex));
           }
         }
       }
     }
+
+    tableIdToTableName = ImmutableMap.copyOf(tableIdToTableNameBuilder);
 
 Review comment:
   Good catch; I will update it.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message