You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by GitBox <gi...@apache.org> on 2020/03/13 14:43:06 UTC

[GitHub] [storm] Ethanlm commented on a change in pull request #3227: STORM-3602 fix switching on low water mark for loadaware shuffle

Ethanlm commented on a change in pull request #3227: STORM-3602 fix switching on low water mark for loadaware shuffle
URL: https://github.com/apache/storm/pull/3227#discussion_r392269309
 
 

 ##########
 File path: storm-client/src/jvm/org/apache/storm/grouping/LoadAwareShuffleGrouping.java
 ##########
 @@ -47,13 +47,14 @@
     private Random random;
     private volatile int[] prepareChoices;
     private AtomicInteger current;
-    private Scope currentScope;
+    @VisibleForTesting
+    LocalityScope currentScope;
 
 Review comment:
   I would keep this as private and add a `getCurrentScope` function for test only with `@VisibleForTesting` annotation.

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