You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/04/18 21:13:44 UTC

[GitHub] [accumulo] keith-turner commented on a change in pull request #1100: Avoid locking in tserver when reading online tablets

keith-turner commented on a change in pull request #1100: Avoid locking in tserver when reading online tablets
URL: https://github.com/apache/accumulo/pull/1100#discussion_r276836425
 
 

 ##########
 File path: server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServer.java
 ##########
 @@ -367,15 +365,13 @@ public TabletServer(ServerContext context) {
     this.replWorker = new ReplicationWorker(context, fs);
     this.statsKeeper = new TabletStatsKeeper();
     SimpleTimer.getInstance(aconf).schedule(() -> {
-      synchronized (onlineTablets) {
-        long now = System.currentTimeMillis();
-        for (Tablet tablet : onlineTablets.values())
-          try {
-            tablet.updateRates(now);
-          } catch (Exception ex) {
-            log.error("Error updating rates for {}", tablet.getExtent(), ex);
-          }
-      }
+      long now = System.currentTimeMillis();
 
 Review comment:
   I don't think it will cause any problems.  It was sync before to avoid concurrent mod exceptions.  Now it will iterate over the immutable snapshot.

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